Need a special offer?Find out if your project fits.
+
All documentation
API reference
  • 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

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