All documentation
  • API Reference for older versions
  • getColumnsAsync

    getColumnsAsync(): Promise<Object []>

    [starting from version: 2.9]

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

    Example

    pivot.getColumnsAsync().then(columns => {
    columns.forEach(
    item => console.log(item);
    );
    });

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

    See an example on JSFiddle.

    See also

    getColumns
    getRowsAsync
    getReportFiltersAsync
    getAllHierarchiesAsync
    getAllMeasuresAsync
    getMeasuresAsync