All documentation
  • API Reference for older versions
  • getAllHierarchies

    getAllHierarchies(): Array

    [starting from version: 1.4]

    Returns a list of all available fields. Note that getAllHierarchies has an async equivalent - getAllHierarchiesAsync.

    Returns

    Array of ResultHierarchyObjects that describe available fields.

    If data load is in progress an empty array will be returned.

    Example

    pivot.getAllHierarchies();

    /* method returns an array of ResultHierarchyObjects
    [
    {caption: "Business Type", uniqueName: "Business Type", type: "string"},
    {caption: "Category", uniqueName: "Category", type: "string"},
    {caption: "Country", uniqueName: "Country", type: "string"}
    ]
    */

    Check out on JSFiddle.

    See also

    getAllHierarchiesAsync
    getAllMeasures
    getColumns
    getRows
    getReportFilters
    getMeasures