I'm taking tried-and-true code from 8.1 and moving to 8.2. I'm getting a curious effect on an html page that combines two reports and two graphs, with code like this --
<table align='center'> <tr><td align='center'> !IBI.FIL.THE_SUMMARY_TABLE ; <br> <br> <br> </td></tr> <tr><td width='90%'> !IBI.FIL.THE_GRAPH ; </td> <td width=20px /></tr> <tr><td align='center'> <br> <br> <br> <br> <br> !IBI.FIL.THE_TABLE ; </td></tr> <tr><td align='center'> <br> <br> <br> <br> <br> !IBI.FIL.PIE_GRPH ; </td></tr> </table>
The two tables work fine and appear every single time.
The first graph, THE_GRAPH, generally does not show up but shows up occasionally. That is, the first graph only shows a heading line, not the associated graph underneath it. No errors are presented in the output.
The second graph, PIE_GRPH, shows up every time.
When I remove the second graph, the first works like a clock. So somehow the two hold files are clashing with each other.
The graphs are jscharts, generated like this --
ON GRAPH HOLD FORMAT JSCHART AS THE_GRAPH
ON GRAPH HOLD FORMAT JSCHART AS PIE_GRPH
8.2 seems to have an issue with this, or perhaps there's an odd setting on the new server that I'm overlooking?
Anyone bump into something like this in the past?This message has been edited. Last edited by: FP Mod Chuck,
Are the Charts JSCHART ?
Have you checked for JS errors ?
Are the charts the same name ?
Can you repro with sample files ?
After I opened this thread I found a similar one with a different set of search terms. They were in the same situation I was, a conversion up to 8.2 I get the feeling 8.2 doesn't like two js charts on the same page.
I may need to embed in an iframe. This is an upgrade and I'd very much like to not change the appearance as it always raises questions with the people that wear ties around here. Upgrades always end up costing a lot of money in lost productivity.
Yeah, I got a deadline, so I iframed it. That puts two (or multiple) jscharts into different chunks of source code and everyone plays nice at that point. The nitty-gritties --
Fifty says I have this problem in five years, completely forget that I've run into it before and search for this same thing. John, you're welcome.
Did you try with this syntax:
ON GRAPH HOLD AS THE_GRAPH FORMAT JSCHART
ON GRAPH HOLD AS PIE_GRPH FORMAT JSCHART
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
Yes. Made no difference.
Everything I'm looking at indicates that this is an issue with displaying them on the page, not their generation in the FOCUS code.This message has been edited. Last edited by: John_Edwards,
Can you send me the HTML generated ?
I'd like to analyse it
|Powered by Social Strata|