Table of contents

getAllHierarchies

getAllHierarchies():Array

[starting from version: 1.4]

Returns a list of all available hierarchies.

Returns

Array of objects. Each object in array contains the following properties:

  • caption – String. Hierarchy caption.
  • uniqueName – String. Unique hierarchy name.
  • type – String. Hierarchy type. The following types are supported: "string", "number", "date", "date string", "year/month/day", "year/quarter/month/day", "datetime", "time", "level".

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

Example

flexmonster.getAllHierarchies();

/* method returns array of objects
[
{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

getAllMeasures
getColumns
getRows
getReportFilters
getMeasures