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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED[ Hyperlink JSCHART

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED[ Hyperlink JSCHART
 Login/Join
 
Gold member
posted
When I run the following, I only get the hyperlink for the first instance. Any idea why? When I do it without declaring the COLUMN, it seems to work fine. Thanks
  
GRAPH FILE CAR
SUM
WEIGHT
DEALER_COST	
RETAIL_COST
ACROSS COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET STYLE *
TYPE=DATA, TARGET='_blank', COLUMN=WEIGHT, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
TYPE=DATA, TARGET='_blank', COLUMN=DEALER_COST, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
TYPE=DATA, TARGET='_blank', COLUMN=RETAIL_COST, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
ENDSTYLE
END

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


WF 8.0.08 (Prod); WF 8.2.06 (Dev)
 
Posts: 83 | Location: OK | Registered: November 19, 2015Report This Post
Virtuoso
posted Hide Post
In your case it seems that you drill the same way no matter the clicked measure, use as below
GRAPH FILE CAR
SUM
WEIGHT
DEALER_COST	
RETAIL_COST
ACROSS COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET STYLE *
-*TYPE=DATA, TARGET='_blank', COLUMN=WEIGHT, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
-*TYPE=DATA, TARGET='_blank', COLUMN=DEALER_COST, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
-*TYPE=DATA, TARGET='_blank', COLUMN=RETAIL_COST, FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $

TYPE=DATA, TARGET='_blank', FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
ENDSTYLE
END

To have specific styling per across column, use the below
GRAPH FILE CAR
SUM
WEIGHT
DEALER_COST	
RETAIL_COST
ACROSS COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET STYLE *
TYPE=DATA, TARGET='_blank', ACROSSCOLUMN=WEIGHT, FOCEXEC=111_hyperlink_rpt(COUNTRY=COUNTRY), $
TYPE=DATA, TARGET='_blank', ACROSSCOLUMN=DEALER_COST, FOCEXEC=222_hyperlink_rpt(COUNTRY=COUNTRY), $
TYPE=DATA, TARGET='_blank', ACROSSCOLUMN=RETAIL_COST, FOCEXEC=333_hyperlink_rpt(COUNTRY=COUNTRY), $

-*TYPE=DATA, TARGET='_blank', FOCEXEC=test_hyperlink_rpt(COUNTRY=COUNTRY), $
ENDSTYLE
END

This message has been edited. Last edited by: MartinY,


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: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
ACROSSCOLUMN! Thank You!


WF 8.0.08 (Prod); WF 8.2.06 (Dev)
 
Posts: 83 | Location: OK | Registered: November 19, 2015Report 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[ Hyperlink JSCHART

Copyright © 1996-2020 Information Builders