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.
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

Registering a Data for the Dashboard

Hallo! Brauchen Sie Hilfe?