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     [SOLVED] WF 8 - Temporary Parking Space with Web Address Available?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WF 8 - Temporary Parking Space with Web Address Available?
 Login/Join
 
Master
posted
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>,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
I have no experience with that ( just haven't tried it yet, but could prove useful in the near future ).

Try looking for : "foccache" in this forum.

It's a 'folder' which is created exactly for this ( internal ) purpose.

e.g. read this post
http://forums.informationbuild...077030036#7077030036


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Master
posted Hide Post
Thank you for the link to the foccache post, Dave.

foccache does sound like what I need.

I've updated that post, asking if a solution for WF 8 had been found yet.

That post has received over 1,000 views, so I am sure others are interested. :-)

Thanks again.
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
Search the forum on EDAGET. There are examples already posted on how to make WFS content web addressable.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Master
posted Hide Post
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  

The presentation fex calls the HTML5 graphs:
-******************************************************************************
-* Setup Environment/Variables.
-******************************************************************************
-SET &RANDOM = RDUNIF(D5) * RDUNIF(D5) * 10000;
-SET &SRC_GRAPH1   = '/ibi_apps/WFServlet?IBIF_ex=Graph01.fex'
-                   | '&' | 'IBIAPP_app=summit2014'
-                   | '&' | 'RND=' | &RANDOM;
-SET &SRC_GRAPH2   = '/ibi_apps/WFServlet?IBIF_ex=Graph02.fex'
-                   | '&' | 'IBIAPP_app=summit2014'
-                   | '&' | 'RND=' | &RANDOM;
-SET &SRC_GRAPH3  = '/ibi_apps/WFServlet?IBIF_ex=Graph03.fex'
-                   | '&' | 'IBIAPP_app=summit2014'
-                   | '&' | 'RND=' | &RANDOM;
-SET &SRC_GRAPH4  = '/ibi_apps/WFServlet?IBIF_ex=Graph04.fex'
-                   | '&' | 'IBIAPP_app=summit2014'
-                   | '&' | 'RND=' | &RANDOM;
-******************************************************************************
-* Display the Graphs to the user.
-******************************************************************************
-HTMLFORM BEGIN
<HTML>
  <head>
   <title>Test - Display 4 Graphs</title>
   <style type="text/css" media="screen, print, projection">
    .row {
     overflow: hidden;
     padding-bottom:30px;
    }
    .grid-m1 {
     float: left;
     width: 1%;
     height: 1px;
    }
    .grid-c1 {
     float: left;
     width: 40%;
    }
    .grid-m2 {
     float: left;
     width: 1%;
    }
    .grid-c2 {
     float: left;
     width: 40%;
     display: inline;
    }
    .grid-m3 {
     float: left;
     width: 18%;
    }
   </style>
 </head>
-*
  <BODY>
-* Row 1
  <div class="row">
   <div class="grid-m1"></div>
   <div class="grid-c1">
    <IFRAME SRC="!IBI.AMP.SRC_GRAPH1;" width="80%" height="350px" id="iframe1" marginheight="0" frameborder="20">
    </iframe>
   </div>
   <div class="grid-m2"></div>
   <div class="grid-c2">
    <IFRAME SRC="!IBI.AMP.SRC_GRAPH2;" width="80%" height="350px" id="iframe2" marginheight="0" frameborder="20">
    </iframe>
   </div>
   <div class="grid-m3"></div>
  </div>
-* Row 2
  <div class="row">
   <div class="grid-m1"></div>
   <div class="grid-c1">
   </div>
   <div class="grid-m2"></div>
   <div class="grid-c2">
   </div>
   <div class="grid-m3"></div>
  </div>
-* Row 3
  <div class="row">
   <div class="grid-m1"></div>
   <div class="grid-c1">
    <IFRAME SRC="!IBI.AMP.SRC_GRAPH3;" width="80%" height="350px" id="iframe3" marginheight="0" frameborder="20">
    </iframe>
   </div>
   <div class="grid-m2"></div>
   <div class="grid-c2">
    <IFRAME SRC="!IBI.AMP.SRC_GRAPH4;" width="80%" height="350px" id="iframe4" marginheight="0" frameborder="20">
    </iframe>
   </div>
   <div class="grid-m3"></div>
  </div>
  </BODY>
</HTML>
-HTMLFORM END 

With this approach, I obtain the nice layout I was looking for; and no longer need to store the graphs in an application, or elsewhere on the server.

Sure is great seeing the HTML5 graphs resize, when the window size changes!

This message has been edited. Last edited by: David Briars,
 
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     [SOLVED] WF 8 - Temporary Parking Space with Web Address Available?

Copyright © 1996-2020 Information Builders