Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3022

Re: Filter one data source based on an output from another data source

$
0
0

Hi Aby,

 

You can try adapting the second code sample as follows, based on Karol's solution I have referenced above:

 

 

var myKey = "";

 

var myFilterMembers = DS_2.getMembers("0PLANT", 100);

 

myInputString = "";

 

 

 

myFilterMembers.forEach(function(element, index) {

 

  myKey = element.internalKey;

 

  var myValue = DS_2.getData(<Key Figure ID>, {"0PLANT":myKey}).formattedValue;

 

  if (myValue != "") {

    myInputString = myInputString + myKey + "/";

    }

 

});

 

 

 

DS_1.setFilter("0PLANT",myInputString.split("/"));

 

 

 

 

Regards,

 

Mustafa.


Viewing all articles
Browse latest Browse all 3022

Trending Articles



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