Stimulsoft.Reports.Web.NetCore StiDesigner with Angular and Send FormValues
Posted: Fri Apr 10, 2020 5:25 pm
Hello,
I'm using StiDesigner and StiViewer of Stimulsoft.Reports.Web.NetCore package with Angular like your "Web API with Angular" sample for StiViewer in github and as result of my debugging on StiVeiwer it is possible to send formValues to backend like below:
I have same expectation from StiDesigner to send formValues to responsible backend, but doesn't work and requestParams.FormValues is null on backend.
designer code:
Thank you.
I'm using StiDesigner and StiViewer of Stimulsoft.Reports.Web.NetCore package with Angular like your "Web API with Angular" sample for StiViewer in github and as result of my debugging on StiVeiwer it is possible to send formValues to backend like below:
Code: Select all
this.options = new Stimulsoft.Viewer.StiViewerOptions();
this.options.formValues = {__ReportId: 'ReportId'};
//or this.options.routes= {__ReportId: 'ReportId'};
this.viewer = new Stimulsoft.Viewer.StiViewer(this.options, 'MainViewer', false);
this.viewer.renderHtml('viewer');
designer code:
Code: Select all
this.options = new Stimulsoft.Designer.StiDesignerOptions();
this.options.formValues = {__ReportId: 'ReportId'};
this.designer = new Stimulsoft.Designer.StiDesigner(this.options, 'MainDesigner', false);
this.designer.renderHtml('designer');