Skip to Content
0
Former Member
Jun 22, 2016 at 10:23 PM

Onclick button with reference to various global scripts

498 Views

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