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

getRows

getRows(): Array

[starting from version: 1.4]

Returns a list of fields selected in the report slice for rows. Note that getRows has an async equivalent - getRowsAsync.

Returns

Array of FieldObjectReturned objects that describe the selected fields.

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

Example

pivot.getRows();

/* method returns an array of FieldObjectReturned objects
[
{
"caption": "Category",
"dimensionCaption": "Category",
"dimensionUniqueName": "Category",
"folder": "",
"label": "Category",
"sort": "asc",
"uniqueName": "Category",
"type": "string"
},
// Other fields
]
*/

Check out on JSFiddle.

See also

getRowsAsync
getAllHierarchies
getColumns
getReportFilters
getAllMeasures
getMeasures