Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default database connection name #445

Open
MrAhmedSayedAli opened this issue Aug 21, 2023 · 1 comment
Open

default database connection name #445

MrAhmedSayedAli opened this issue Aug 21, 2023 · 1 comment

Comments

@MrAhmedSayedAli
Copy link

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()

image

@MrAhmedSayedAli
Copy link
Author

i just make temp fix for me
add qh->setConnectionName(replaceVariables(qh->connectionName()));

and
if (!QSqlDatabase::contains(replaceVariables(connectionDesc->name())))

if (!QSqlDatabase::contains(connectionDesc->name())){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant