getReportFilters(): Array
[starting from version: 2.4]
Returns a list of hierarchies selected in the report slice for report filters. Note that getReportFilters
has an async equivalent – getReportFiltersAsync.
Array of objects. Each object in the array contains the following properties:
caption
– String. Hierarchy caption.uniqueName
– String. Unique hierarchy name.sort
– String. Sorting type ("asc"
, "desc"
, or "unsorted"
).type
– String. The hierarchy’s type. It is returned for "json"
, "csv"
, "api"
, and "elasticsearch"
data source types:"json"
and "csv"
, the type
can be the following: "string"
, "number"
, "date"
, "date string"
, "year/month/day"
, "year/quarter/month/day"
, "datetime"
, "time"
."api"
, the type
can be the following: "string"
, "number"
, "date string"
, "datetime"
, "time"
."elasticsearch"
, the type
’s possible values are described here: Field data types.If data load is in progress an empty array will be returned.
flexmonster.getReportFilters(); /* method returns array of objects [ {caption: "Business Type", uniqueName: "Business Type", sort: "desc", type: "string"}, {caption: "Category", uniqueName: "Category", sort: "asc", type: "string"} ] */
Open the example on JSFiddle.
getReportFiltersAsync
getAllHierarchies
getColumns
getRows
getAllMeasures
getMeasures