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