Menu
Download Free Trial
Table of contents

runQuery

runQuery(slice:Slice Object)

[starting from version: 1.6]

Runs a query with specified Slice Object and displays the result data. Use this method to rearrange hierarchies on the axes or to compose a new report based on the current data source.

Parameters

  • sliceSlice Object that defines rows, columns, report filters, measures, filters, sorting etc.

Example

var slice = 
{
 rows:
 [
  {uniqueName: "Country"}
 ],
 columns:
 [
  {uniqueName: "Color"}
 ],
 measures:
 [
  {uniqueName: "Price"}
 ]
};
flexmonster.runQuery(slice);

Open the example on JSFiddle.

See also

getReport
setReport