Editable report programatically stop edit mode

Stimulsoft Reports.JS discussion
Post Reply
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Editable report programatically stop edit mode

Post by angelcalvasp »

I currently have a custom save button which does a certain custom action to recreate the data from edited fields as a json object but I would like to end edit mode when I click that custom save button
Is there a way for a report to programmatically leave edit mode in and and editable report?

currently using latest version
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Editable report programatically stop edit mode

Post by Lech Kulikowski »

Hello,

You can use the following code:

Code: Select all

var viewer = new Stimulsoft.Viewer.StiViewer(viewerOptions, "StiViewer", false);
viewer.renderHtml("content");

//finish editable mode
viewer.jsObject.SetEditableMode(false);
Thank you.
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: Editable report programatically stop edit mode

Post by angelcalvasp »

Awesome thanks
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Editable report programatically stop edit mode

Post by Lech Kulikowski »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply