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     Calling javascript function from a graph for drill down

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calling javascript function from a graph for drill down
 Login/Join
 
<kj>
posted
For a drill down from graph, I am calling a javascript function With parameters.
One of the parameter has values with "_" and "-"( for example test_test, test-test).
When the graph is displayed on the browser, it is ignoring the parameter values which has _ and -. What could be the reason?

GRAPH FILE CAR
SUM
DEALER_COST
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHSTYLE *
ENDSTYLE
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA, ACROSSCOLUMN=N1 , JAVASCRIPT=showdetail(A1 'SS_TEST'),$
ENDSTYLE
END


The value ss_test is not passed to the drill down report.
Any help would be greatly appreciated.
I am using WebFocus 5.21.

Thanks
 
Report This Post
<Emma Schwarz>
posted
Try removing:
ENDSTYLE
$
from your request. The ENDSTYLE statement closes the styling section of the request and may be causing the subsequent statements to be ingored.
 
Report This Post
<kj>
posted
There are couple of lines missing in the code I posted.
The actual code is

GRAPH FILE CAR
SUM
DEALER_COST
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHSTYLE *
setFillColor(getSeries(0),new Color(102,0,112));
setGridStep(getY1MajorGrid(),5000000.0);
setFontStyle(getLegendText(0),2);
setLabelStagger(getO1Label(),FALSE);
setBorderColor(getX1MinorGrid(),new Color(133,133,133));
setBorderColor(getY1MinorGrid(),new Color(133,133,133));
setFillColor(getChartBackground(),new Color(254,255,225));
ENDSTYLE
ON GRAPH SET STYLE *
UNITS=PTS,
LEFTMARGIN=18,
RIGHTMARGIN=18,
TOPMARGIN=18,
BOTTOMMARGIN=18,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA, ACROSSCOLUMN=N1 , JAVASCRIPT=showdetail(A1 'SS_TEST'),$
ENDSTYLE
END
 
Report 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     Calling javascript function from a graph for drill down

Copyright © 1996-2020 Information Builders