Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
$viewer->onBeginProcessData = function (StiDataEventArgs $args) {
if ($args->connection == 'MySQL')
$args->connectionString = 'Server=localhost; Database=northwind; UserId=root; Pwd=;';
if ($args->dataSource == 'customers' && count($args->parameters) > 0) {
$args->parameters['Country']->value = "Germany";
}
};
$viewer->process();onBeginProcessData — fires on the server before the SQL data is fetched.$args->connectionString — supplies the database connection string for the named connection.$args->parameters['Country']->value — sets the value of a named query parameter (here filtering by country).