Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

getDataAsString - selection as variable

$
0
0

Hello,

 

I'm missing something on how getDataAsString() works using a variable to pass the selection.

 

Consider the following data source:

 

DimMeas
x1

 

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.


Viewing all articles
Browse latest Browse all 4041

Trending Articles



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