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.<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-dashboards-js-vuejs/viewer'
Stimulsoft.StiOptions.WebServer.url = "http://localhost:9615/";
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Dashboards/SalesOfProducts.mrt");
report.onBeginProcessData = function (args) {
// Replace connection parameters or the SQL query before the request
if (args.connection === "MySQL")
args.connectionString = "Server=localhost; Database=northwind; UserId=root; Pwd=;";
if (args.dataSource === "products")
args.queryString = "SELECT * FROM MyTable";
};
</script>
<template>
<Viewer :report="report" />
</template>StiOptions.WebServer.url — the Node.js SQL adapter the engine sends data commands to.args.connectionString / args.queryString — swap the connection or SQL per data source before the request.