Updating JSON data source
Posted: Tue Jun 21, 2016 2:31 pm
I have a WebAPI server which is returning a report just fine using code previously provided. However, I need to provide the JSON data source to it dynamically, and I cannot get the examples I have found on the forums to work for me. The example I found that seems ideal is this one:
However, there is no Stimulsoft.System.Data assembly on my computer. Is this not available in the web version? Why not?
I can get this example I found to compile, but I see that this object type is internal, and I am not sure how to get it to load the JSON data either.
This seems a basic requirement for a web server, so I hope that it is possible without resorting to files.
I look forward to learning how to do it properly. Thank you.
Code: Select all
var dataSet = new Stimulsoft.System.Data.DataSet("invoice");
dataSet.readJson(reportdata);
report.regData(dataSet.dataSetName, "", dataSet);
I can get this example I found to compile, but I see that this object type is internal, and I am not sure how to get it to load the JSON data either.
Code: Select all
var dataSet = new Stimulsoft.Report.Dictionary.StiJsonDatabase("mydata", "");
I look forward to learning how to do it properly. Thank you.