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:

NameTypeDescription
captionStringThe field caption.
uniqueNameStringThe unique field name.

Example

webdatarocks.getAllHierarchies();

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

Try on CodePen.

See also