Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
$report->engine = StiEngineType::ServerNodeJS;
$report->onBeginProcessData = function (StiDataEventArgs $args) {
if ($args->connection == 'MyConnectionName')
$args->connectionString = 'Server=localhost; Database=northwind; UserId=root; Pwd=;';
if ($args->dataSource == 'MyDataSource')
$args->queryString = 'SELECT * FROM MyTable';
};
$report->process();
$report->loadFile('reports/SimpleListSQL.mrt');
$report->render();engine = StiEngineType::ServerNodeJS — renders on the server with the Node.js engine.onBeginProcessData — fires on the server as data is processed, keeping the connection details in PHP.$args->connectionString / queryString — supply the database connection and SQL query for the headless render.