In an ASP.NET Core MVC app the controller builds the dashboard and returns it to the viewer — here the data comes from a JSON file rather than the template.

Load the dashboard and register JSON data. In the GetReport action:
var report = StiReport.CreateNewDashboard();
report.Load(StiNetCoreHelper.MapPath(this, "Dashboards/Dashboard.mrt"));

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

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

return StiNetCoreViewer.GetReportResult(this, report);

How it works. The dashboard is assembled server-side on each request, so its data can come from anywhere the controller can reach.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.