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