Updating to latest JS Designer, errors and issues
Posted: Wed Oct 22, 2025 12:26 am
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.
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
The only way I can stop this error is to create a new blank Report.
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" .
Any help would be appreciated.
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();
`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())Code: Select all
designer.report = new Stimulsoft.Report.StiReport();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;