Need a special offer?Find out if your project fits.
+
All documentation
  • API Reference for older versions
  • getRowsAsync

    getRowsAsync(): Promise<Object []>

    [starting from version: 2.9]

    Returns a Promise object that resolves to an array of fields selected for rows in the slice. See the array’s structure in getRows.

    Example

    flexmonster.getRowsAsync().then(rows => {
    rows.forEach(
    item => console.log(item);
    );
    });

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

    See an example on JSFiddle.

    See also

    getRows
    getColumnsAsync
    getReportFiltersAsync
    getMeasuresAsync
    getAllMeasuresAsync
    getAllHierarchiesAsync