I use Below codes to build create data set from json like this: {agendaDataSource: [], tasksDataSource: []},
and there is a relation between them.
consider I have two data source,
If those be empty, I can not use them on my codes,
Actually I have a relation between two data source, If one of these data sources be empty, stimulsoft generate an error like this:
Column 'Id' does not exist in Data Source 'agendaDataSource' and relation 'MyRelation1' can't be created!
Code: Select all
var stiDataSet = new Stimulsoft.System.Data.DataSet(webComponent.context["name"] + "DataSetObject");
stiDataSet.readJson(data);
report.regData(stiDataSet.dataSetName, "", stiDataSet);
var trueFileName = "scripts/app/report/" + webComponent.fileName + ".mrt";
report.loadFile(trueFileName);