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] Graph drill down issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph drill down issue
 Login/Join
 
Platinum Member
posted
Hello

I am working on a simple bar graph and am having drill down issue. I tried several ways but could not get it. I replicated the same using CAR file

GRAPH FILE CAR
SUM SALES AS ''
BY HIGHEST TOTAL SALES NOPRINT
BY COUNTRY  AS ''
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 650
ON GRAPH SET VAXIS 450
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBIPlumOnWhite.txt");
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDisplay(getO1MajorGrid(),false);
setFontName(getO1Label(),"Arial");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 8);
ENDSTYLE
ON GRAPH SET STYLE *
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     COLUMN=N3,
     TARGET='_blank',
     FOCEXEC=app/drill_down.fex(CNTRY_NM=COUNTRY),
ENDSTYLE
END


When we click the drill down, all the time FRANCE is being sent as the value. This is the line that is creating the issue - "BY HIGHEST TOTAL SALES NOPRINT". If I remove that line, drill down is working fine and passing correct value.

Please provide a fix or a work around for this.

Thank you..

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


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Expert
posted Hide Post
I ran your code, as posted, and, as you can see from the URLs, the correct country is being passed in the variable:

http://localhost:8080/ibi_apps...fex&CNTRY_NM=ENGLAND

http://localhost:8080/ibi_apps...CNTRY_NM=W%20GERMANY

In drill_down.fex, you need to use &CNTRY_NM in the filter.

Also, though it works, I would probably use TYPE=DATA instead of TYPE=REPORT for the drilldown.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
  
GRAPH FILE CAR
SUM SALES AS ''
   COUNTRY NOPRINT
BY HIGHEST TOTAL SALES NOPRINT
BY COUNTRY  AS ''
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 650
ON GRAPH SET VAXIS 450
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBIPlumOnWhite.txt");
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDisplay(getO1MajorGrid(),false);
setFontName(getO1Label(),"Arial");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 8);
ENDSTYLE
ON GRAPH SET STYLE *
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     COLUMN=N3,
     TARGET='_blank',
     FOCEXEC=app/drill_down.fex(CNTRY_NM=N4),
ENDSTYLE
END


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi Tom,

Is the below code working for you?
I still see FRANCE being passed..!!

Thanks
quote:
Originally posted by Tom Flynn:
  
GRAPH FILE CAR
SUM SALES AS ''
   COUNTRY NOPRINT
BY HIGHEST TOTAL SALES NOPRINT
BY COUNTRY  AS ''
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 650
ON GRAPH SET VAXIS 450
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBIPlumOnWhite.txt");
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDisplay(getO1MajorGrid(),false);
setFontName(getO1Label(),"Arial");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 8);
ENDSTYLE
ON GRAPH SET STYLE *
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     COLUMN=N3,
     TARGET='_blank',
     FOCEXEC=app/drill_down.fex(CNTRY_NM=N4),
ENDSTYLE
END


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Expert
posted Hide Post
Works for me...

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi tom

Its working. In calling drilldown, I was using COUNTRY instead of N4. Changed it to N4 and it works..

thank you..


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report 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] Graph drill down issue

Copyright © 1996-2020 Information Builders