[starting from version: 2.9]
getMembersAsync(uniqueName: String, memberName: String): Promise<Object[]>
Returns a Promise object that resolves to an array of members for the specified field. Learn more about the array’s structure and method’s parameters in getMembers.
pivot.getMembersAsync("Category").then(members => {Live example
members.forEach(
item => console.log(item);
);
});
/* getMembersAsync method returns an array of field members
[
{
"uniqueName": "category.[accessories]",
"caption": "Accessories",
"dimensionName": "Category",
"hierarchyName": "Category",
"hierarchyCaption": "Category",
"parentMember": "category.[(all member)]",
"isLeaf": true,
"children": []
},
{
"uniqueName": "category.[bikes]",
"caption": "Bikes",
"dimensionName": "Category",
"hierarchyName": "Category",
"hierarchyCaption": "Category",
"parentMember": "category.[(all member)]",
"isLeaf": true,
"children": []
},
// ...
]
*/