Focal Point
[Closed]How to affect multiple targets when clicking in a chart

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

June 21, 2016, 10:21 AM
pbmdo1
[Closed]How to affect multiple targets when clicking in a chart
I am creating a dashboard containing multiple charts and a map object. The The effect I would like to create is for all the charts to update with the data for a particular state when clicked on. I can currently get the action to affect a single chart (with a hyperlink) but would like to know if the above desired action is possible and how it is accomplished.

Thank you

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


Director-Business Intelligence
WebFOCUS 8.09
Windows, All Outputs
June 22, 2016, 10:19 AM
J.L. Hinds
There may be better ways but as the great philosopher, Frank Sinatra, said……… “I did it my way” 

Drill statement in your map.

TYPE=DATA, COLUMN=N2, TARGET='_self', JAVASCRIPT=parent.setControls1(N1 \
&GEOGRAPHY_DISTRIBUTOR_WAREHOUSE_DISTRIBUTOR_WAREHOUSE.QUOTEDSTRING \
&WHAT_CAT.QUOTEDSTRING \
&TIME_DURATIONS_DURATIONS.QUOTEDSTRING \
&TIME_WEEK_WEEK.QUOTEDSTRING), $

Javascript on in your HTML

function setControls1(NEWMAN, GEOGRAPHY_DISTRIBUTOR_WAREHOUSE_DISTRIBUTOR_WAREHOUSE, WHAT_CAT, TIME_DURATIONS_DURATIONS, TIME_WEEK_WEEK) {
IbComposer_setCurrentSelection('inputhidden1', NEWMAN, true);
IbComposer_setCurrentSelection('inputhidden2', WHAT_CAT, true);
IbComposer_execute('pdrill1','graph1');
IbComposer_execute('bdrill1', 'graph2');
}



This ties a pie chart and a bar chart together so they both drill regardless of which one you drilled from.


WebFOCUS 7.6
Windows, All Outputs
June 23, 2016, 10:15 AM
pbmdo1
Thank you for the input. I have two questions.I am still very new to WebFocus development.
What are pdrill1 and bdrill1?
Where does the code for the map object go? Not sure how to insert the code.

Thank you


Director-Business Intelligence
WebFOCUS 8.09
Windows, All Outputs
June 23, 2016, 01:39 PM
pbmdo1
Figured out the parameters for the ibComposer_execute command.

Still have the question on the code insertion in the map FEX.

Thank you


Director-Business Intelligence
WebFOCUS 8.09
Windows, All Outputs
June 24, 2016, 10:43 AM
J.L. Hinds
pdrill1 and graph1 are iframes on the page.
pdrill1 is hidden, graph1 is not.

I have the following

graph1 (pie chart) graph2(hbar chart)

pdrill1 (hidden pie) bdrill2(hidden hbar)


the execute command loads the hidden charts into the visible (graph1) iframe.


WebFOCUS 7.6
Windows, All Outputs