Hi All,
I am working on following scenarios.
I have a dashboard with KPIs with various tabs. Each KPI is linked to onlick button which refresh a chart.
Each onclick should be linked to all existing global scripts and depending on which tab we are navigating on refreshing the graph.I have the onlick pointing only on one global script and it is working.
I would like for each onclick button to refer an various global scripts by checking the tab on which is opened.
This is working:
gv_titre ='actual';
GLOBAL_SCRIPTS_1.tabolt();
I would like to write something similar to this:
gv_titre ='actual';
if(gv_Tab == 'tab1') {
GLOBAL_SCRIPTS_1.tabolt();
}
else if(gv_titre == 'tab2') {
GLOBAL_SCRIPTS_1.taboltet();
etc
Basile
Hi Basile,
Your requirement is not entirely clear. Can you provide the script content for GLOBAL_SCRIPTS_1.tabolt() ?
If all you want to do is refresh the data source for a chart based on the selected tab then you should add a data source parameter to the GLOBAL_SCRIPTS_1.tabolt() function and pass the relevant data source via an if then statement in the On Click script of the tabstrip component.
Regards,
Mustafa.
Add a comment