☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation

getAllHierarchies

getAllHierarchies(): Array

[starting from version: 1.4]

Returns a list of all available fields. Note that getAllHierarchies has an async equivalent - getAllHierarchiesAsync.

Returns

Array of FieldObjectReturned objects that describe available fields.

If data load is in progress an empty array will be returned.

Example

pivot.getAllHierarchies();

/* method returns an array of FieldObjectReturned objects
[
{caption: "Business Type", uniqueName: "Business Type", type: "string"},
{caption: "Category", uniqueName: "Category", type: "string"},
{caption: "Country", uniqueName: "Country", type: "string"}
]
*/

Check out on JSFiddle.

See also

getAllHierarchiesAsync
getAllMeasures
getColumns
getRows
getReportFilters
getMeasures