on 2023 Jun 13 10:26 AM
Hello there,
I seem to have a simple and basic question. How do I read a specific property of a given dimension member? Please see the screenshot. I have a dimension "FMEPACKAGE" which has the property "Category". By looping through the packages I want to add those packages to a dropdown list which have the selected category in their property.
In the variable "packages" there is no option to read the properties. What am I doing wrong?
Thanks and regards!
Stefan
stefan.voltz1
getmembers() of datasource does not expose the attributes, that is why you are not able to check its value. If your model is planning model you can use getmember of Planning Model.
var members1=PlanningModel_1.getMembers("SAP_CEP_PRODUCT",{limit:1000}); // Replace with your dim
for(var counter1=0;counter1<members1.length; counter1++)
{ if(members1[counter1].properties.BRAND===sel_brand ) // BRAND is attribute, replace accordingly
{var filtered_member=members1[counter1];
members.push(filtered_member.id);
}
}
Hope this helps !!
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.