LimeReport
LimeReport copied to clipboard
default database connection name
how to set custom database connection name from code
by code like
report->dataManager()->setReportVariable("custom_connection_name",EasyQtSql::SqlFactory::getInstance()->getDatabase("CLOUD").connectionName())
report->dataManager()->setDefaultDatabasePath()
i just make temp fix for me
add qh->setConnectionName(replaceVariables(qh->connectionName()));
https://github.com/fralx/LimeReport/blob/f73342dc20414bb1ef97b396757cdda3b43861ae/limereport/lrdatasourcemanager.cpp#L1020
and
if (!QSqlDatabase::contains(replaceVariables(connectionDesc->name())))
https://github.com/fralx/LimeReport/blob/f73342dc20414bb1ef97b396757cdda3b43861ae/limereport/lrdatasourcemanager.cpp#L977