Skip to Content
author's profile photo Former Member
Former Member

Onclick button with reference to various global scripts

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 22, 2016 at 10:54 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.