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.var report = new Stimulsoft.Report.StiReport();
report.onBeginProcessData = function (args) {
if (args.database === "JSON" && args.command === "GetData" &&
args.pathData && args.pathData.indexOf("/reports/ProtectedDemo.json") >= 0) {
args.headers.push({ key: "X-Auth-Token", value: "*YOUR TOKEN*" });
}
};
report.loadFile("../reports/SimpleListWithProtectedJson.mrt");
report.renderAsync();onBeginProcessData — fires before each data request; inspect args.database/args.command to target the right one.args.headers.push({ key, value }) — add HTTP headers sent with the JSON fetch, e.g. an auth token.