Get Free Trial
API reference
Table of contents

getAllHierarchiesAsync

[starting from version: 2.9]

getAllHierarchiesAsync(): Promise<Object []>

Returns a Promise object that resolves to an array of all available hierarchies. 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