Changing a DataSource Ident at runtime
Posted: Wed Jun 12, 2019 7:02 pm
I most everything else working except this one last piece (which works if I change the .Ident manually)
I am looking to change the Dictionary.DataSources.Ident from "StiPostgreSQLSource" to "StiDataTableSource" so I can load JSON into the report using the following method:
If I manually change the Ident to "StiDataTableSource" in the .mrt file, the report loads. I am working on programmatically changing the Ident property before rendering the report.
Thanks,
Mike
I am looking to change the Dictionary.DataSources.Ident from "StiPostgreSQLSource" to "StiDataTableSource" so I can load JSON into the report using the following method:
Code: Select all
let reportJSON ={
"reporting_base_crosstab_data" : [{
"name": "Who knows?"
"connectionsmade" : "25",
"date" : "02-02-2019",
"interactionsmade": "34"
} ] };
var dataSet = new SSoft.System.Data.DataSet("Demo");
dataSet.readJson(reportJSON);
report.regData("Demo", "Demo", dataSet);
Thanks,
Mike