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] Sharing parameters values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Sharing parameters values
 Login/Join
 
Member
posted
Hi Experts,
I have a chart embedded in a html that calls another chart through a hyperlink.

The first chart recibes the parameters value from a section parameters and showed the data ok. But the second chart ask me the parameter despite i specified the parameter in the filter section.

I don't know how specify the filter to inherit the value of the parameter
Thanks for your help.

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.1
Windows
 
Posts: 28 | Registered: February 21, 2017Report This Post
Gold member
posted Hide Post
I think what you are looking for is passing parameters from your first HTML to second Chart.

I just solved the same issue today after going through the following technique. Let me know if this helps.

http://www.informationbuilders...letter/12-4/05_denst

1) In HTML Composer under Requests and Data Sources Panel, add a new external request for Webfocus procedure (in your case chart 2)

2) For the button element/link in your html create a new task under tasks and animation panel and add a external request for your chart 2 with target as new window.


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Report This Post
Member
posted Hide Post
Thanks for your answer.
But the hyperlink is in an attribute of the first chart (embedded in the html), i need the link there, because the second chart depends the all parameters given and a new one Which corresponds to the bar selected by the user in the first graph (bar graphic).


WebFocus 8.1
Windows
 
Posts: 28 | Registered: February 21, 2017Report This Post
Virtuoso
posted Hide Post
You can do all this using the GUI. This is what I did for below sample.
The parent need the country as parameter.
The child also need the country AND the clicked column value (CAR). Both values are passed to the child.

As reference, here a sample

Parent graph
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
SUM CAR.BODY.SEATS
BY CAR.COMP.CAR
WHERE CAR.ORIGIN.COUNTRY EQ &FLTCNTRY. (|FORMAT=A10).COUNTRY.QUOTEDSTRING;
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N2, TARGET='_blank', FOCEXEC=IBFS:/WFC/Repository/IT/child.fex(FLTCAR=CAR.COMP.CAR FLTCNTRY=&FLTCNTRY.QUOTEDSTRING), $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN

Child graph
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
SUM CAR.BODY.RETAIL_COST
    CAR.BODY.DEALER_COST
BY CAR.CARREC.MODEL
WHERE CAR.COMP.CAR EQ &FLTCAR. (|FORMAT=A16).CAR.QUOTEDSTRING;
WHERE CAR.ORIGIN.COUNTRY EQ &FLTCNTRY. (|FORMAT=A10).COUNTRY.QUOTEDSTRING;
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN


I suggest that you take some IBI training, it may help you especially if you start using WebFocus.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
Martin,
I did it by the GUI interface but i don't know why the value of some parameters is lost.

I have five parameters and the values ​​of three of those parameters do not reach the second graph (the latter is called by hyperlink inside the first graph) but if they reach the first one.

The problem is not the parameter as such but its value.

I appreciate your help.


WebFocus 8.1
Windows
 
Posts: 28 | Registered: February 21, 2017Report This Post
Virtuoso
posted Hide Post
At this point you have to share your code of both fex, the parent and the child.
Don't forget to add your code between the [ code ] tag.
</>
last button option


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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] Sharing parameters values

Copyright © 1996-2020 Information Builders