Updating to latest JS Designer, errors and issues

Stimulsoft Reports.JS discussion
Post Reply
User avatar
midspace
Posts: 29
Joined: Tue Sep 10, 2013 12:20 am
Location: Melbourne, Australia

Updating to latest JS Designer, errors and issues

Post by midspace »

Hi.
We're upgrading our internal web application from Version: 2018.1.4 to 2025.4.1

We use the JS designer in our web application for special customizations of existing reports before processing.

Our application uses ASP.NET to load and save templates to a database, which has worked fine.
However, we do not allow the creation of new reports via the designer.

When creating the designer in JS, in the past we did not need to specify a new report template.

Code: Select all

var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
designer.onSaveReport = SaveReport;
designer.onOpenReport = OpenReport;
designer.onExit = ExitDesigner;
designer.renderHtml();
With the new designer, we're getting an error:
`Uncaught TypeError: Cannot read properties of undefined (reading 'action')`
on this line of code in the stimulsoft.designer.js

Code: Select all

o.items.newReport.action())
The only way I can stop this error is to create a new blank Report.

Code: Select all

designer.report = new Stimulsoft.Report.StiReport();
Is there no way of avoiding creating an empty report?

If this is unavoidable, how do I go about disabling the Save functionality until we have loaded one of our templates?
I know we can hide the Save buttons, but this does not disable the shortcut "CTRL S" .

Code: Select all

var options = new Stimulsoft.Designer.StiDesignerOptions();
options.toolbar.showFileMenuNew = false;
options.toolbar.showFileMenuSaveAs = false;
options.toolbar.showFileMenuSave = false;
options.toolbar.showSaveButton = false;
Any help would be appreciated.
Lech Kulikowski
Posts: 7452
Joined: Tue Mar 20, 2018 5:34 am

Re: Updating to latest JS Designer, errors and issues

Post by Lech Kulikowski »

Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.
User avatar
midspace
Posts: 29
Joined: Tue Sep 10, 2013 12:20 am
Location: Melbourne, Australia

Re: Updating to latest JS Designer, errors and issues

Post by midspace »

Please find attached a cut down sample.
Attachments
designer_test.zip
(5.91 KiB) Downloaded 9 times
Lech Kulikowski
Posts: 7452
Joined: Tue Mar 20, 2018 5:34 am

Re: Updating to latest JS Designer, errors and issues

Post by Lech Kulikowski »

Hello,

Thank you for the sample.
We need some additional time to investigate the issue, we will let you know about the result as soon as possible.

Thank you.
#18672
Post Reply