DataSet With Two Tables
Posted: Mon Jul 09, 2018 9:28 am
I have a problem when creating a report which has two separate tables as i defined a custom data source then added two tables "salesInvoice" & "SysCompany"
In JS i did the following code
this.report.loadFile(this._getSubFolder()+'/'+file.FileName);
// Set Company Dataset
var dataSetCompany = new Stimulsoft.System.Data.DataSet("SysCompany");
dataSetCompany.readJson(JSON.stringify(this.SelectedCompany))
this.report.regData("SysCompany", "", dataSetCompany);
// Set Sales Invoice Dataset
var dataSet = new Stimulsoft.System.Data.DataSet("salesInvoice");
dataSet.readJson(JSON.stringify(this.Data))
this.report.regData(dataSet.dataSetName, "", dataSet);
I tried many many scenario like attached two tables as one json and send but no way
All result give me NAN
I am using Stimulsoft 17_2_3 JS
In JS i did the following code
this.report.loadFile(this._getSubFolder()+'/'+file.FileName);
// Set Company Dataset
var dataSetCompany = new Stimulsoft.System.Data.DataSet("SysCompany");
dataSetCompany.readJson(JSON.stringify(this.SelectedCompany))
this.report.regData("SysCompany", "", dataSetCompany);
// Set Sales Invoice Dataset
var dataSet = new Stimulsoft.System.Data.DataSet("salesInvoice");
dataSet.readJson(JSON.stringify(this.Data))
this.report.regData(dataSet.dataSetName, "", dataSet);
I tried many many scenario like attached two tables as one json and send but no way
All result give me NAN
I am using Stimulsoft 17_2_3 JS