[CLOSED] Upgrading from 8.1 to 8.2 -- Two Graphs on one html page clash
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 --
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,
October 03, 2019, 05:10 PM
Waz
Are the Charts JSCHART ?
Have you checked for JS errors ?
Are the charts the same name ?
Can you repro with sample files ?
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
October 04, 2019, 09:14 AM
John_Edwards
1. Yes. 2. Yes. 3. No. 4. Probably.
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 get a couple of Javascript errors that I get on all pages, not just this one about duplicate tags. So I don't think those are related to this particular issue.
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.
October 04, 2019, 09:57 AM
John_Edwards
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 --
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,