Page 1 of 1

Updating to latest JS Designer, errors and issues

Posted: Wed Oct 22, 2025 12:26 am
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.

Re: Updating to latest JS Designer, errors and issues

Posted: Wed Oct 22, 2025 10:00 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: Updating to latest JS Designer, errors and issues

Posted: Thu Oct 23, 2025 1:43 am
by midspace
Please find attached a cut down sample.

Re: Updating to latest JS Designer, errors and issues

Posted: Thu Oct 23, 2025 1:36 pm
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