Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.
All documentation
  • API Reference for older versions
  • 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 ResultHierarchyObjects 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 ResultHierarchyObjects
    [
    {
    "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