getAllHierarchies():Array
Returns a list of all available hierarchies from the report.
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.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.