Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Display two HTML5 graphs in one report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Display two HTML5 graphs in one report
 Login/Join
 
Gold member
posted
Hi again,

I'm working on getting multiple HTML5 graphs to display from one fex file but I'm having issues doing it.

When I incorporate two graphs into the procedure it will not display both graphs. After some google work I found a solution where someone put the two graphs into a hold and used an HTML page to display the two graphs. When I do that however the styling of the first graphs goes away. I've included the code below of the two hold graphs, the HTML page, and what the end results currently is.

 -*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+DQo8Um9vdCB2ZXJzaW9uPSIxLjAiPg0KICAgIDxPYmplY3Qgb2JqZWN0SWQ9IkNoYXJ0XzEiPg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iTGlua2VkU29ydHMiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciLz4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IkNyb3NzVGFiTW9kZSIgdHlwZT0iamF2YS5sYW5nLkJvb2x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LD.METRICDATA
BY J7.UNIT.UNITDESC
ACROSS HOLD.HOLD.METRICTIMEFRAMEDESCLONG
WHERE HOLD.HOLD.METRICID EQ 113;
WHERE HOLD.HOLD.METRICSERIESID EQ 418;
ON GRAPH HOLD AS GRAPH1 FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 700.0
ON GRAPH SET VAXIS 150.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setUseSeriesShapes(true);
setMarkerSizeDefault(50); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(2),new Color(237,186,4));
setTransparentBorderColor(getSeries(2), false);
setTransparentBorderColor(getSeries(1), false);
setBorderColor(getSeries(1),new Color(213,213,0));
setBorderColor(getSeries(0),new Color(191,0,0));
setFillColor(getSeries(4),new Color(217,0,0));
setBorderColor(getSeries(4),new Color(255,255,255));
setDisplay(getO1Title(),false);
setDisplay(getY1Title(),false);
setFillColor(getSeries(0),new Color(0,128,0));
setFillColor(getSeries(1),new Color(255,128,0));
*END
ENDSTYLE
END
-*IA_GRAPH_FINISH
 


 -*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+DQo8Um9vdC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Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iZW5hYmxlUHJldmlldyIgdHlwZT0iamF2YS5sYW5nLkJvb2xlYW4iPnRydWU8L1Byb3BlcnR5Pg0KICAgIDwvT2JqZWN0Pg0KPC9Sb290Pg0K
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
GRAPH FILE HOLD
-* Created by Info Assist for Graph
SUM HOLD.HOLD.METRICDATA
BY J7.UNIT.UNITDESC
ACROSS HOLD.HOLD.METRICTIMEFRAMEDESCLONG
WHERE HOLD.HOLD.METRICID EQ 113;
WHERE HOLD.HOLD.METRICSERIESID EQ 434;
ON GRAPH HOLD AS GRAPH2 FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 700.0
ON GRAPH SET VAXIS 150.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setUseSeriesShapes(true);
setMarkerSizeDefault(50); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(2),new Color(237,186,4));
setTransparentBorderColor(getSeries(2), false);
setTransparentBorderColor(getSeries(1), false);
setBorderColor(getSeries(1),new Color(213,213,0));
setBorderColor(getSeries(0),new Color(191,0,0));
setFillColor(getSeries(4),new Color(217,0,0));
setBorderColor(getSeries(4),new Color(255,255,255));
setDisplay(getO1Title(),false);
setDisplay(getY1Title(),false);
setFillColor(getSeries(0),new Color(0,128,0));
setFillColor(getSeries(1),new Color(255,128,0));
*END
ENDSTYLE
END
-*IA_GRAPH_FINISH
 


 -HTMLFORM BEGIN
<html>
<head>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
  <tr>
    <td width="50%">!IBI.FIL.GRAPH1;</td>
    <td width="50%">!IBI.FIL.GRAPH2;</td>
  </tr>
</table>
</body>
</html>
-HTMLFORM END
 


The style of the first graph is suppose to be identical to the style of the second graph.



Any help is greatly appreciated!

-Egon

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus App Studio 8.1.0.5, Windows 7 64bit.
 
Posts: 65 | Location: Missouri, USA | Registered: March 06, 2014Report This Post
Guru
posted Hide Post
From what I can tell you can't do two HTML5 graphs in one document.

Using Developer Studio
1. Create two fex files one for each graph.
2. Create another fex file. Create with Composer. In Composer you can add the the two graphs.
The output will be HTML graphs you won't get the animation.

Using the Portal
1. Create a Document
2. InfoAssist should come up
3. Insert two Charts and build the graphs
4. You will notice HTML5 is greyed out

Also try your solution above with HOLD FORMAT HTMTABLE and HOLD FORMAT HTML.

This message has been edited. Last edited by: Mighty Max,


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Expert
posted Hide Post
Worked OK for me ....
-SET &HoldType = 'HOLD';
-SET &Region = 'Northeast';
-INCLUDE chart1.fex
-RUN
-SET &Region = 'Southeast';
-INCLUDE chart1.fex
-RUN
-HTMLFORM BEGIN
<html>
<head>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
  <tr>
    <td width="50%">!IBI.FIL.Northeast;</td>
    <td width="50%">!IBI.FIL.Southeast;</td>
  </tr>
</table>
</body>
</html>
-HTMLFORM END

-* Repeatable chart focexec Chart1.fex
-DEFAULTH &Region = 'Northeast'
-DEFAULTH &HoldType = 'PCHOLD'
DEFINE FILE GGSALES
MONTH/Mt=GGSALES.SALES01.DATE;
YEAR/YY=GGSALES.SALES01.DATE;
END
-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0 Removed to save screen width
*-INTERNAL_COMMENT LINE#1 Removed to save screen width
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
GRAPH FILE GGSALES
-* Created by Info Assist for Graph
SUM GGSALES.SALES01.DOLLARS
ACROSS GGSALES.SALES01.MONTH
BY YEAR
WHERE GGSALES.SALES01.REGION EQ '&Region';
ON GRAPH &HoldType.EVAL AS &Region.EVAL FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 700.0
ON GRAPH SET VAXIS 150.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setUseSeriesShapes(true);
setMarkerSizeDefault(50); 
*END
INCLUDE=endeflt.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(2),new Color(237,186,4));
setTransparentBorderColor(getSeries(2), false);
setTransparentBorderColor(getSeries(1), false);
setBorderColor(getSeries(1),new Color(213,213,0));
setBorderColor(getSeries(0),new Color(191,0,0));
setFillColor(getSeries(4),new Color(217,0,0));
setBorderColor(getSeries(4),new Color(255,255,255));
setDisplay(getO1Title(),false);
setDisplay(getY1Title(),false);
setFillColor(getSeries(0),new Color(0,128,0));
setFillColor(getSeries(1),new Color(255,128,0));
*END
ENDSTYLE
END
-RUN
-*IA_GRAPH_FINISH

Produces -


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
I ran Tony's code against my localhost in Dev Studio and did not get the same results. I am using Dev Studio 8.0.7.
Might be a bug in 8.0.7. Egon you can try opening a case and pass along this forum post and Tony's code.



WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Gold member
posted Hide Post
I have run it both ways now and I'm getting the same results at Max. I'm using 8.0.4

However, this only happen when I run the report stand alone, either from dev studio, or from the resource tree.

When I place the report on an actual portal all charts display correctly.

-Egon


WebFocus App Studio 8.1.0.5, Windows 7 64bit.
 
Posts: 65 | Location: Missouri, USA | Registered: March 06, 2014Report This Post
Guru
posted Hide Post
If you don't want to use the -HTMLFORM method, you can actually have two graphs in document composer with the HTML5 engine.
Have your two graphs as AHTML graphs in two saperate reports and then put them into document composer with the overriding output format as Active Report.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Master
posted Hide Post
Egon-

I obtained the same results as you, when I ran your code.

I noticed that the code was giving the following error message when I looked at Programmer Tools (I'm on IE9.):
HTML1113: Document mode restart from IE9 Standards to Quirks

I added the DOCTYPE tag before the HTML tag, and now, with the HTML1113 error going away, both charts render.
...
-HTMLFORM BEGIN
<!DOCTYPE html>
<html>
... 

-Dave

This message has been edited. Last edited by: David Briars,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Display two HTML5 graphs in one report

Copyright © 1996-2020 Information Builders