LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: ghon on August 03, 2023, 12:09:25 AM

Title: data connection
Post by: ghon on August 03, 2023, 12:09:25 AM
How can I change connection as
Driver
Server
Port
User Name
Password
at runtime from qt application.
Thank u in advance.
Title: Re: data connection
Post by: Subst on August 03, 2023, 10:22:48 AM
In such case U need to open database in your application, create model for needed table and transfer it to dataSource
like this

Code: [Select]
LimeReport::ReportEngine *report=new LimeReport::ReportEngine(this);
report->dataManager()->addModel(...)

may be exists another way to solve the problem, I can't to come quickly.
Lets wait for Alex?
Title: Re: data connection
Post by: Arin Alex on August 05, 2023, 11:40:19 AM
Hi.
It has been discussed here:
https://limereport.ru/forum/index.php?topic=373.msg2514#msg2514
Title: Re: data connection
Post by: ghon on August 22, 2023, 10:12:43 PM
I'm Using postgres I need to change the connection(server,password,port,database) at runtime