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.
<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-reports-js-vuejs/viewer'
Stimulsoft.StiOptions.WebServer.url = "http://localhost:9615/";
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Reports/SimpleListSQL.mrt");
report.onBeginProcessData = function (args) {
// You can change the SQL query parameters with the required values
// For example: SELECT * FROM @Parameter1 WHERE Id = @Parameter2 AND Date > @Parameter3
if (args.dataSource === 'customers') {
args.parameters[0].value = 'Germany';
}
}
</script>
<template>
<Viewer :report="report" />
</template>In the onBeginProcessData event the query parameters are exposed through args.parameters; assigning value for the matching data source injects the run-time value into the SQL command.