Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

APPLICATION.setVariable method, synchronous or asynchronous?

$
0
0


Hi,

 

I am using Design Studio 1.3 SP02 and data source is based on a Bex Query.

 

I have a chart bound to my data source and I am using APPLICATION.setVariable method to set value of a Bex variable.

 

After execution of the setVariable method the chart is filtered accordingly but following script returns old data

 

APPLICATION.setVariable("VAR1","ABC");

text1 = DS_1.getDataAsString("",{});

 

but if I refresh the data source manually then I get the same data as in the chart

 

APPLICATION.setVariable("VAR1","ABC");

DS_1.reloadData();

 

text1 = DS_1.getDataAsString("",{});

 

Has anybody else faced the same issue? The application guide for setVariable() method mentions following: "Sets query variable values in the internal key format and executes the data source query again".

 

Thanks!

 

Hashir


Viewing all articles
Browse latest Browse all 4216

Trending Articles



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