We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.
All documentation
  • API Reference for older versions
  • getAllHierarchiesAsync

    [starting from version: 2.9]

    getAllHierarchiesAsync(): Promise<Object []>

    Returns a Promise object that resolves to an array of all available fields. See the array’s structure in getAllHierarchies.

    Example

    pivot.getAllHierarchiesAsync().then(allHierarchies => {
    allHierarchies.forEach(
      item => console.log(item);
     );
    });

    /* getAllHierarchiesAsync method returns array of objects
    [      
    {
    "caption": "Category",
    "sort": "asc",
    "uniqueName": "Category",
    "type": "string"
    },
    {
    "caption": "Size",
    "sort": "asc",
    "uniqueName": "Size",
    "type": "string"
    },
    ...
    ]
    */

    See an example on JSFiddle.

    See also

    getAllHierarchies
    getAllMeasuresAsync
    getMeasuresAsync
    getRowsAsync
    getColumnsAsync
    getReportFiltersAsync