Disable Save and Open on Designer Preview - JS

Stimulsoft Reports.JS discussion
Post Reply
nickdavies07
Posts: 28
Joined: Fri Jul 17, 2020 2:19 pm

Disable Save and Open on Designer Preview - JS

Post by nickdavies07 »

How can I disable the Save and Open buttons under 'Preview' on the designer?

Code: Select all

options.toolbar.showSaveButton = false
This only disables the option in the top left, and

Code: Select all

showFileMenuSave
only disables under the file menu.
nickdavies07
Posts: 28
Joined: Fri Jul 17, 2020 2:19 pm

Re: Disable Save and Open on Designer Preview - JS

Post by nickdavies07 »

OK so I've found the following options in the StiDesignerOptions object:

Code: Select all

  options.viewerOptions.toolbar.showOpenButton = false;
  options.viewerOptions.toolbar.showSaveButton = false;
However, the options.viewerOptions.toolbar.showSaveButton does not work. It throws an error

Code: Select all

Unhandled promise rejection TypeError: can't access property "items", c is undefined
Any support is greatly appreciated.
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Disable Save and Open on Designer Preview - JS

Post by Lech Kulikowski »

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.
nickdavies07
Posts: 28
Joined: Fri Jul 17, 2020 2:19 pm

Re: Disable Save and Open on Designer Preview - JS

Post by nickdavies07 »

Thanks,

I can confirm that in the latest release 2020.4 that this is now fixed and working as it should.

Nick
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Disable Save and Open on Designer Preview - JS

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
Post Reply