Get Free Trial
Get Free Trial

setReport() – measures active = false

Answered
Seekme asked on November 6, 2019

I’ve been trying to use the getReport() function to save a report and setReport() to load that report but it seems that the “active” parameter of all measures is not taken into account.

All of my measures are in the values field even though some of them are “active : false”.

Is it expected ? Am I doing something wrong ?
I can do a js fiddle if needed.

Thanks.

2 answers

Public
Seekme November 6, 2019

Ok looks like when I remove the double quotes around the “false” in the saved json, it works well.

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 6, 2019

Hello,
 
Thank you for reaching out to us.
 
We’re happy to hear you have managed to resolve the problem.
 
The issue is connected with data types. false is a boolean type and shouldn’t be surrounded with quotes.
 
Feel free to contact us in case other questions occur.
 
Regards,
Illia

Please login or Register to Submit Answer