JSON datasource error with StiJsonToDataSetConverter command
Posted: Tue Apr 13, 2021 3:15 pm
Hello,
I use Reports.Net products to develop reports and Reports.web to publish them on the internet (version 2019.1.1).
When I import the attached json into the designer everything works and the data is rendered correctly (screenshot_designer.png).
However, when I use the StiJsonToDataSetConverter command to synchronize the dataset via code, the report
does not recognize the json and displays nothing, the report is empty, even if the json file is the same, the “test.json” file.
I use these commands:
Report.Dictionary.Databases.Clear();
var Dset = StiJsonToDataSetConverter.GetDataSetFromFile(@ "E:\_SPRINT\LTSE-722\test.json");
Report.RegData ("ds", Dset);
Report.Dictionary.Synchronize();
The very strange thing is that if I remove the "Report" element in the json then the dataset is managed
successfully and the report synchronizes. I wonder why the designer is able to manage this structure
while the code not.
Thanks and best regards,
Ivan.
I use Reports.Net products to develop reports and Reports.web to publish them on the internet (version 2019.1.1).
When I import the attached json into the designer everything works and the data is rendered correctly (screenshot_designer.png).
However, when I use the StiJsonToDataSetConverter command to synchronize the dataset via code, the report
does not recognize the json and displays nothing, the report is empty, even if the json file is the same, the “test.json” file.
I use these commands:
Report.Dictionary.Databases.Clear();
var Dset = StiJsonToDataSetConverter.GetDataSetFromFile(@ "E:\_SPRINT\LTSE-722\test.json");
Report.RegData ("ds", Dset);
Report.Dictionary.Synchronize();
The very strange thing is that if I remove the "Report" element in the json then the dataset is managed
successfully and the report synchronizes. I wonder why the designer is able to manage this structure
while the code not.
Thanks and best regards,
Ivan.