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.
onPrepareVariables event supplies values that flow into the report generator.$viewer = new StiViewer();
$viewer->javascript->relativePath = '../';
$viewer->onPrepareVariables = function (StiVariablesEventArgs $args) {
if (count($args->variables) > 0) {
$args->variables['Name']->value = 'Maria';
$args->variables['Surname']->value = 'Anders';
$args->variables['BirthDay']->value = '1982-03-20 00:00:00';
}
};
$viewer->process();
$report->loadFile('../reports/Variables.mrt');
$viewer->report = $report;onPrepareVariables — server event that receives the report's variables before rendering.$args->variables['Name']->value — assign each value by name; types must match those defined in the template.