Data can be attached to a dashboard at run time — here a JSON file is parsed and bound to the template before it is shown.

Parse JSON and register it.
var report = StiReport.CreateNewDashboard();
report.Load("Dashboards\\Dashboard.mrt");

var jsonBytes = File.ReadAllBytes("Dashboards\\Demo.json");
var dataSet   = StiJsonConnector.Get().GetDataSet(new StiJsonOptions(jsonBytes));

report.RegData(dataSet);
report.Dictionary.Synchronize();

How it works. The dashboard elements resolve their expressions against the registered data, so the same template works with any compatible JSON source.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.