Open MrAhmedSayedAli opened 1 year ago
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()->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()));
add qh->setConnectionName(replaceVariables(qh->connectionName()));
https://github.com/fralx/LimeReport/blob/f73342dc20414bb1ef97b396757cdda3b43861ae/limereport/lrdatasourcemanager.cpp#L1020
and if (!QSqlDatabase::contains(replaceVariables(connectionDesc->name())))
if (!QSqlDatabase::contains(replaceVariables(connectionDesc->name())))
https://github.com/fralx/LimeReport/blob/f73342dc20414bb1ef97b396757cdda3b43861ae/limereport/lrdatasourcemanager.cpp#L977
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()