Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
onSaveReport event decides how to store it.$designer->onSaveReport = function (StiReportEventArgs $args) {
$name = strlen($args->fileName) > 0 ? $args->fileName : 'Dashboard.mrt';
$result = file_put_contents("../reports/$name", $args->getReportJson());
return $result === false
? StiResult::getError('Save failed.')
: StiResult::getSuccess("Saved to '$name'.");
};
$designer->process();
$designer->report = $report;onSaveReport — fires when the user saves; $args->getReportJson() is the edited dashboard as JSON.file_put_contents(..., $args->getReportJson()) — write the dashboard back to the server's reports folder.