Get Free Trial
Get Free Trial

flexmonster.runQuery can take options? just as it takes slice

sabby asked on August 25, 2017

   flexmonster.runQuery  can take options? just as it takes slice
something like :
var option ={
options: {
viewType: “grid” ,
“grid”: {
“type”: “classic”},
showFilter: true,
showHeaders: true
}}
flexmonster.runQuery(option);

3 answers

Public
Tanya Gryshko Flexmonster August 29, 2017

Sabby,

API call runQuery doesn’t take any options. Please use setReport instead.

Thanks,
  Tanya

Public
sabby August 31, 2017

i just need to update the options and not update the report data.
when i set options manully by below line fo code , the report data is set to empty somehow. 
var options = {
grid: {
showGrandTotals: “off”,
showTotals: “off”,
type: “flat”
}
};
this.pivot.setOptions(options);

Public
Tanya Gryshko Flexmonster September 1, 2017

Hi Sabby!

I think in this case the most appropriate API call is setOptions

Does it work for you?

Thanks,
  Tanya

Please login or Register to Submit Answer