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.
Can I store the results of a GRAPH FILE request, in a temporary space, and have that temporary space be available from the browser?
In the request below, two WF 8 HTML5 graphs are created, and then stored within the BASEAPP application via APP HOLD BASEAPP.
The two graphs are then presented in the browser window via iframe tags.
I’d prefer to store the graphs in a user/task specific temporary space, so I would not need to perform cleanup, as well as, to not have to provide unique file names.
Any/all suggestions welcome.
-* File OpenTwoGraphs.fex
-******************************************************************************
-* Setup Environment/Variables.
-******************************************************************************
-DEFAULTH &RC = 'RC', &DC = 'DC'
-SET &RANDOM = RDUNIF(D5) * RDUNIF(D5) * 10000;
-SET &SRC_GRAPH1 = 'http://localhost:8080/approot/baseapp/hld1.htm' | '?RND=' | &RANDOM;
-SET &SRC_GRAPH2 = 'http://localhost:8080/approot/baseapp/hld2.htm' | '?RND=' | &RANDOM;
APP PREPENDPATH IBISAMP
APP HOLD BASEAPP
-RUN
-******************************************************************************
-* Graph 1 - Car Sales Report
-******************************************************************************
GRAPH FILE CAR
SUM &RC
&DC
BY COUNTRY
ON GRAPH HOLD AS HLD1 FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET GRAPHSTYLE *
setTitleString("Car Sales Report");
setSubtitleString("By Country");
setO1TitleString("Cost Type");
ENDSTYLE
ON GRAPH SET STYLE *
*GRAPH_JS
mouseOverIndicator: {enabled: true, color:'yellow'},
riserBevel: 'cylinder',
riserShadow: true,
introAnimation: {
enabled: true,
duration: 1400
},
*END
ENDSTYLE
END
-RUN
-******************************************************************************
-* Graph 2 - Coffee Sales Report
-******************************************************************************
GRAPH FILE GGSALES
SUM GGSALES.SALES01.DOLLARS
BY GGSALES.SALES01.ST
ON GRAPH HOLD AS HLD2 FORMAT JSCHART
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(4);
setTitleString("Coffee Sales Report");
setSubtitleString("By State");
setGroupLabelArray("State");
*GRAPH_JS
"mouseOverIndicator": {
"enabled": true,
"color": "yellow",
"marker":{"size": 0}
},
"introAnimation": {
"enabled": true,
"duration": 1400
},
"riserBevel":"bevel"
*END
ENDSTYLE
END
-RUN
-******************************************************************************
-* Display the 2 Sales Graphs to the user.
-******************************************************************************
-HTMLFORM BEGIN
<HTML>
<head>
<meta http-Equiv="Cache-Control" Content="no-cache">
<meta http-Equiv="Pragma" Content="no-cache">
<meta http-Equiv="Expires" Content="0">
<title>Test - Display 2 Graphs</title>
</head>
<BODY>
<H3>Graph 1</H3>
<IFRAME SRC="!IBI.AMP.SRC_GRAPH1;" width="80%" height="350px" id="iframe1" marginheight="0" frameborder="25">
</iframe>
<H3>Graph 2</H3>
<IFRAME SRC="!IBI.AMP.SRC_GRAPH2;" width="80%" height="350px" id="iframe2" marginheight="0" frameborder="25">
</iframe>
</BODY>
</HTML>
-HTMLFORM END
This message has been edited. Last edited by: <Kathryn Henning>,
Upon further review, I realized I needed to change my approach, to get the results I was looking for, while increasing scalability and maintainability.
First of all, each of the GRAPH FILEs are now stored in individual focexecs.
For example:
-* File Graph01.fex
-******************************************************************************
-* Graph 1 - Car Cost Report
-******************************************************************************
-DEFAULTH &RC = 'RC', &DC = 'DC'
GRAPH FILE CAR
SUM &RC
&DC
BY COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET GRAPHSTYLE *
setTitleString("Car Cost Report");
setSubtitleString("By Country");
setO1TitleString("Cost Type");
ENDSTYLE
ON GRAPH SET STYLE *
*GRAPH_JS
mouseOverIndicator: {enabled: true, color:'yellow'},
riserBevel: 'cylinder',
riserShadow: true,
introAnimation: {
enabled: true,
duration: 1400
},
*END
ENDSTYLE
END
-RUN