Cloud
Cloud-Dienstleistung für schnelle und effektive Analyse und Visualisierung von Daten für Ihr Business ohne eigene Applikationen zu erstellen oder zu programmieren.
onBeginProcessData event.import { Component } from "@angular/core";
import { Viewer, Stimulsoft } from "stimulsoft-dashboards-js-angular/viewer";
@Component({
imports: [Viewer],
template: `<sti-viewer [report]="report" [options]="options"></sti-viewer>`
})
export class Example {
report: Stimulsoft.Report.StiReport;
options: Stimulsoft.Viewer.StiViewerOptions;
constructor() {
this.report = new Stimulsoft.Report.StiReport();
this.report.loadFile("Dashboards/OrdersUrl.mrt");
this.report.onBeginProcessData = function (args) {
if (args.database === "JSON" && args.command === "GetData") {
args.headers.push({ key: "X-Auth-Token", value: "*YOUR TOKEN*" });
}
};
this.options = new Stimulsoft.Viewer.StiViewerOptions();
this.options.appearance.fullScreenMode = true;
}
}onBeginProcessData — fires before the data request; check args.database/args.command to target it.args.headers.push({ key, value }) — add HTTP headers such as an auth token.