Hello,
I'm missing something on how getDataAsString() works using a variable to pass the selection.
Consider the following data source:
| Dim | Meas |
|---|---|
| x | 1 |
A) Using a hard coded selection, I get the value 1 in an alert box:
APPLICATION.alert(DS_TEST.getDataAsString("Meas", {"Dim":"x"});
B) Using a variable to pass the selection, I get nothing:
var filter = "{\"Dim\":\"x\"}";
APPLICATION.alert(DS_TEST.getDataAsString("Meas", filter));
Where am I going wrong here? I've tried an even simpler case using only measures in the data source and passing in "{}" to selection via a variable and I am unable to get the result.