Get Free Trial
API reference
Table of contents

getReportFiltersAsync

getReportFiltersAsync(): Promise<Object []>

[starting from version: 2.9]

Returns a Promise object that resolves to an array of hierarchies selected for report filters in the slice. See the array’s structure in getReportFilters.

Example

flexmonster.getReportFiltersAsync().then(reportFilters => {
  reportFilters.forEach(
    item => console.log(item);
  ); 
}); 

/* getReportFiltersAsync method returns array of objects 
[ 
	{caption: "Country", uniqueName: "Country", sort: "asc", type: "string"}, 
	{caption: "Color", uniqueName: "Color", sort: "asc", type: "string"} 
] 
*/

See an example on JSFiddle.

See also

getReportFilters
getColumnsAsync
getRowsAsync
getMeasuresAsync
getAllMeasuresAsync
getAllHierarchiesAsync