on 03-30-2017 11:47 AM
David,
It's actually not that difficult once you get your head round it...
I think getMembers() is the way to do it, not the getMemberList().
Here's a simple example retrieving 10 members of 0CUSTOMER dimension and displaying their internalKeys on screen:
var myArray = DS_1.getMembers("0CUSTOMER", 10);
myArray.forEach(function(element, index) {
APPLICATION.alert(element.internalKey);
});
You basically only refer to "element" to retrieve its properties such as text, internal key or external key, while looping through individual members of the dimension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Agata,
Thanks for your quick and helpful response.
Changing from getMemberList() to getMembers() solved my problem. Seems obvious now, as getMemberList() will return a list and not an array.
Best,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.