Focal Point
[SOLVED]BI Portal: click on a graph and redirect to different page

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5587065486

November 14, 2016, 09:11 AM
glezo
[SOLVED]BI Portal: click on a graph and redirect to different page
hi, experts!

let's say I have this scenario:
-a BI Portal with three tabs (A,B,C)
-A has one graph, B has N graps and C has N graphs.

what I'd like to accomplish is this:
-when the user clicks on the graph of the A tab, i want to redirect him to tab B.

Is this possible?

Thank you SO much!

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8, Win/*NIX, B.I.Portal, *SQL, all outputs
November 14, 2016, 06:26 PM
WFConsultant
It is possible through JavaScript. In the example below 'page2' would be the name of the tab you are trying to open.

GRAPH FILE CAR
SUM RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS HG FORMAT HTML
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
TYPE=DATA, COLUMN=N2, JAVASCRIPT=openTab(),$
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<script>
function openTab(){
parent.BipIframeInterface.navigateToPage('page2');
}

!IBI.FIL.HG;
-HTMLFORM END


WebFOCUS 8207.11
App Studio 8207