Page 1 of 1

Programmatically save a changed design report

Posted: Mon Oct 02, 2023 11:25 pm
by SL_USIS
Hi, How do I save a report in the designer as JSON var without having the user interact with the "save" or "save as" in the designer?

I tried calling

var jsonReport = report.saveToJsonString();

but it just gives me the JSON of the original loaded design, not the modified one.

Thank you

Re: Programmatically save a changed design report

Posted: Wed Oct 04, 2023 9:54 am
by Lech Kulikowski
Hello,

Where do you use your code?
Also, please try to check designer.report.saveToJsonString()

Thank you.

Re: Programmatically save a changed design report

Posted: Wed Oct 04, 2023 11:49 am
by SL_USIS
Hey Lech, never mind. It works, it was a local variable assigned rather than the global variable that I needed to use.

Cheers!

Re: Programmatically save a changed design report

Posted: Wed Oct 04, 2023 11:55 am
by Lech Kulikowski
Hello,

You are welcome.