All documentation
  • API Reference for older versions
  • getMembersAsync

    [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.

    Example

    pivot.getMembersAsync("Category").then(members => {
    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": []
    },
    // ...
    ]
    */
    Live example

    See also

    getMembers