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

setVariableValue based on crosstab selection

$
0
0

Hi,

 

Since the newly supported cascading filters for UNX don't seem to support multiple selection, I'm using crosstabs as an alternative. I'd then like to use the (multiple) selection I make in the crosstab as input for a setVariableValue command of a second datasource.

 

I'd thought to use this script:

 

 

var memberarray = CROSSTAB.getSelectedMembers("_CaDxYKPsEeWyjqW5S58ucQ");

 

var string = '';

 

memberarray.forEach(function(element, index) {

 

     string = string + element.internalKey +'/';

 

});

 

DS_3.setVariableValue("variable", string.split('/'));


This script, however, gives an 'cannot convert from stringarray to VariableValue' error. Does anyone have an idea how I can use a crosstab selection as input for a setVariableValue command?






Viewing all articles
Browse latest Browse all 4041

Trending Articles



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