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] How do you get two drill down graphs to display on one page?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How do you get two drill down graphs to display on one page?
 Login/Join
 
Gold member
posted
I currently have a web page which consists of two frames, the upper frame which consists of a form where a user selects their parameters then clicks the submit button, and a lower frame where the resulting drill down graph will be displayed. . This is accomplished by executing the graph fex from the submit button, using the target attribute, to direct the graph output to the lower frame.

I would like to enhance this application, by launching two graphs from the parameter form in the upper frame. I was considering displaying the first graph in a lower left hand frame, and the second graph in the lower right hand frame. Both graphs would be driven by the same set of parameters passed from the parameter form in the upper frame.

The problem I have is I don't know how to get two graph fexes to execute (or one fex producing two HTML graphs), with output being directed to two separate frames on the web page. Using my existing logic, I can get the original graph fex to run, with the output directed (using the target attribute) to the lower left hand frame. But I don't know how to get the second graph fex to run with output directed to the lower right hand frame.

Does anyone know of a way to accomplish this?

This message has been edited. Last edited by: Kerry,
 
Posts: 62 | Location: New York City | Registered: December 29, 2004Report This Post
<JG>
posted
AN option is to generate the graphs in HTMTABLE FORMAT using HOLD not PCHOLD
and then include the output into an HTMFORM.

You would only need one lower frame not 2.

 
GRAPH FILE A
SUM
.
.
.
ON GRAPH HOLD AS GRAPH1 FORMAT HTMTABLE
END
-RUN
GRAPH FILE B
SUM
.
.
.
ON GRAPH HOLD AS GRAPH2 FORMAT HTMTABLE
END
-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.GRAPH1;</td>
    <td width="50%">!IBI.FIL.GRAPH2;</td>
  </tr>
</table>
</body>
</html>
-HTMLFORM END


 
Report This Post
Gold member
posted Hide Post
JG:

I took your example and modified my approach. On my Launch/Display page, I merged the two separate graph frames into one frame.

Using the Table/Row/Column syntax, I divided the graph frame into a left and right section. I then imported the held html format graphs into the appropriate location.

Using this approach, Upon pressing the Submit button, one fex is executed with the output being targeted to one frame.

This one fex, produced two html graph output files, and the two html graph files were displayed, side by side, in the lower portion of my Launch/Display web page.

Thank you for your assistance.

John K
 
Posts: 62 | Location: New York City | Registered: December 29, 2004Report This Post
Gold member
posted Hide Post
I used this approach to populate four graphs on one page. Manipulating the code lines below, I can put them side by side in a line or one above the other. How can I put GRAPH1 and GRAPH2 side by side and then move GRAPH3 and GRAPH4 below the first two. Sorry, not that famliar with JS. Thanks!

<tr>
    <td width="50%">!IBI.FIL.GRAPH1;</td>
    <td width="50%">!IBI.FIL.GRAPH2;</td>
    <td width="50%">!IBI.FIL.GRAPH3;</td>
    <td width="50%">!IBI.FIL.GRAPH4;</td>
  </tr>


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
Nothing to do with JavaScript, pure HTML will give you what you need -

-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>
  <tr>
    <td width="50%">!IBI.FIL.GRAPH3;</td>
    <td width="50%">!IBI.FIL.GRAPH4;</td>
  </tr>
</table>
</body>
</html>
-HTMLFORM END

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
Gold member
posted Hide Post
Got it. Thanks!


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
There's always another way of doing anything in WebFOCUS (until we run out)... Here's my two cents worth... From the submit button on your launch page, execute multiple fexes (one for each graph) and target four (nicely placed) iFrames (one for each graph)...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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] How do you get two drill down graphs to display on one page?

Copyright © 1996-2020 Information Builders