We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.
Documentation menu

getAllHierarchies

getAllHierarchies():Array

Returns a list of all available hierarchies from the report.

Returns

Returns an array of objects. Each object is characterized by the following properties:

  • caption – String. The hierarchy caption.
  • folder – String.
  • uniqueName – String. The unique hierarchy name.

Example

webdatarocks.getAllHierarchies();

/* The method returns an array of objects: 
[
{caption: "Month", uniqueName: "Month", folder: ""},
{caption: "Region", uniqueName: Region", folder: ""},
{caption: "Country", uniqueName: "Country", folder: ""}
]
*/

Try on CodePen.

See also