The data comes to me in JSON format as follows:
Code: Select all
[
{
"effectiveDateTime": "2020-01-22 04:45"
},
{
"effectiveDateTime": "2020-01-22 09:45"
},
{
"effectiveDateTime": "2020-01-23 13:15"
}
]
Code: Select all
ShowReport(reportName, data, dataSetName) {
var viewer = new window.Stimulsoft.Viewer.StiViewer(this.SetupOptions(), 'StiViewer', false);
var report = new window.Stimulsoft.Report.StiReport();
var dataset = new window.Stimulsoft.System.Data.DataSet(dataSetName)
dataset.readJson(data)
report.loadFile(reportName);
report.dictionary.databases.clear()
report.regData(dataset.dataSetName, dataSetName, dataset)
report.dictionary.synchronize()
viewer.report = report;
viewer.renderHtml('viewer');
},
The built in formats don't satisfy the customer's needs, they want columns to line up with zero padded dates and times.
Also, is there not an updated version of the Designer for Mac, I can't seem to find one past 2019.3.7. When I try to update it wants to download the exe version which is useless for me.