Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Onclick button with reference to various global scripts

$
0
0

Hello Mustafa,


Thank you for replying.

I have created one layout for my application and populating result via text strings.

The idea is for each KPI (e.g TEXT_xx) by clicking on it, it should refer to the right global script and update the chart.
The update of chart is working if I have only one global script in my event. I would like to have conditions which depending on which tab we are by clicking point to the correct global script.
I was thinking about an if  else statement.

Two of my global scripts look like this for e.g:

GLOBAL_SCRIPTS_1.tabolt();

if(gv_tab =='tab1')

{

DS_1.clearFilter("xxxx");

DS_1.setFilter("xxxx");

//KPI1

TEXT_xx.setText(DS_1.getDataAsString("xxxx"}));

//KPI2

TEXT_xx.setText(DS_1.getDataAsString("xxxx"}));

//KPI3

TEXT_xx.setText(DS_1.getDataAsString("xxxx”

 

GLOBAL_SCRIPTS_1.taboltet();

if(gv_tab =='tab2')

{

DS_1.clearFilter("xxxx");

DS_1.setFilter("xxxx");

//KPI1

TEXT_xx.setText(DS_1.getDataAsString("xxxx"}));

//KPI2

TEXT_xx.setText(DS_1.getDataAsString("xxxx"}));

//KPI3

TEXT_xx.setText(DS_1.getDataAsString("xxxx”


Thanks for helping.


Basile


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>