Data can be attached to a dashboard from code — here a JSON file is parsed and registered before the dashboard is shown.

Load, then parse and register JSON.
this.Report = StiReport.CreateNewDashboard();
this.Report.Load("Dashboards/Dashboard.mrt");

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

this.Report.Dictionary.Databases.Clear();
this.Report.RegData("Demo", "Demo", dataSet);

How it works. The dashboard elements resolve their expressions against the registered data, so one 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.