Disable Save and Open on Designer Preview - JS

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

Disable Save and Open on Designer Preview - JS

Post by nickdavies07 » Mon Aug 03, 2020 2:48 pm

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: 25
Joined: Fri Jul 17, 2020 2:19 pm

Re: Disable Save and Open on Designer Preview - JS

Post by nickdavies07 » Tue Aug 04, 2020 7:20 am

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: 3239
Joined: Tue Mar 20, 2018 5:34 am

Re: Disable Save and Open on Designer Preview - JS

Post by Lech Kulikowski » Thu Aug 06, 2020 9:30 am

Hello,

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

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

Re: Disable Save and Open on Designer Preview - JS

Post by nickdavies07 » Tue Aug 25, 2020 10:33 am

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: 3239
Joined: Tue Mar 20, 2018 5:34 am

Re: Disable Save and Open on Designer Preview - JS

Post by Lech Kulikowski » Wed Aug 26, 2020 8:17 pm

Hello

We are always glad to help you!

Thank you.
Post Reply