getAllHierarchies():Array

Returns a list of all available hierarchies in 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. A 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.

What’s next?