Load data from Angular service
Posted: Mon Jul 30, 2018 10:55 am
Hi.
I'm trying to get data from angular service to my report
report data source is named 'ds' of type Business Objects
the code I use:
but in console I can see the error:
Parser error: The name 'ds' does not exist in the current context
thanks
I'm trying to get data from angular service to my report
report data source is named 'ds' of type Business Objects
the code I use:
Code: Select all
....
const report = new Stimulsoft.Report.StiReport();
report.loadFile('reports/Report.mrt');
this.viewer.renderHtml('viewerCont');
this.myService.get('/api/mydata').subscribe(t => {
report.regData('ds', null, t);
this.viewer.report = report;
});
Parser error: The name 'ds' does not exist in the current context
thanks