I am currently working with this JavaScript code snippet:
var viewer = new window.Stimulsoft.Viewer.StiViewer(
null,
"StiViewer",
false
);
var report = new window.Stimulsoft.Report.StiReport();
const { data: reportData } = await GetRequestFromStore(
this.state.reportDate,
this.state.storeId
);
var json = {
DataSet: reportData.requestItems,
};
var dataSet = new window.Stimulsoft.System.Data.DataSet("JSON");
dataSet.readJson(json);
report.regData("JSON", "JSON", dataSet);
report.loadFile(this.state.reportName);
report.dictionary.variables.getByName(
"requestDate"
).valueObject = this.state.jalaaliReportDate;
viewer.report = report;
viewer.renderHtml("viewer");
In addition, I have designed the data source in Stimulsoft designer using the following link:
https://i.sstatic.net/TZCqz.jpg
Everything is functioning as expected. However, I am now seeking a way to pass multiple JSON object arrays (such as Items and Descriptions) to the report within the code.
https://i.sstatic.net/zXs5a.jpg
If you have any insights on how to achieve this, I would greatly appreciate it. Thank you!