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

Re: getMembers() limitation

$
0
0

Hi Scott,

 

I have encountered this behaviour also and have just reproduced it to confirm.  My observation is that getMembers() only returns cascaded filter values based on filters applied on dimensions OTHER THAN the dimension specified in the getMembers() parameter.  So in your example, if you have another dimension in the data source and swap that out for dimension ZBO_STDNT in your getMembers() statement, you should notice that this time you do get the members based on the filtered values.  I guess this behaviour is by design.

 

I'm not aware of an approach to achieve your requirement with standard functionality.  Perhaps others may have ideas.  However, you can definitely achieve your requirement using the Data Iterator Component by Mike Howles from the SCN Design Studio SDK Development Community.

 

The steps are as follows:

 

1.  Ensure that the ZBO_STDNT dimension is included in the rows panel of your data source Initial View;


2.  As an example, apply the following code in the "On Data Change" event script of the Data Iterator to populate a List Box with the filtered members of the dimension:


var Students = DATAITERATOR_1.getRows();

 

myMembers.forEach(function(element, index) {

LISTBOX_1.addItem(element.getDimensionValueKey("ZBO_STDNT"), element.getDimensionValueText("ZBO_STDNT"));

});

 

 

 

Regards,

 

Mustafa.

 

 

 


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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