DontAskSaveReport

Stimulsoft Reports.JS discussion
Post Reply
fridaystreet
Posts: 20
Joined: Thu Jun 08, 2023 11:40 pm

DontAskSaveReport

Post by fridaystreet »

Hi,

How do you use DontAskSaveReport option in js editor?

We have a setup where by all report content is stored in db and loading reports are automatic through a different report selection UI (ie user finds reports in our searchable library tool and on click we open an instance of sti and load the report into it)

We are trying to implement a simple way for users to export/import report as templates. Seems the save as function is perfect for this. We allow the user to save as, the give it a name and save locally. We then enable the open option in menu and they pick the file and it's loaded in to the editor. All well and good there.

The problem is that as soon as the user changes something on a report they are working on and then decides to open a report from saved file, it prompts to save the current one, we don't want this prompt as we already handle the saving automatically. I have found there is reference to a DontAskSaveReport option in the ASP version. How do we do this in javascript?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: DontAskSaveReport

Post by Lech Kulikowski »

Hello,

You can use the showSaveDialog option:
https://www.stimulsoft.com/en/documenta ... ttings.htm

Thank you.
Post Reply