LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: plehmz on June 14, 2024, 09:50:40 am

Title: How to set dynamically tableviews created to the LimeReports
Post by: plehmz on June 14, 2024, 09:50:40 am
I have created an app, when users create multiple tables, in form multiple tableviews created and showed. How can be handled to set dynamically datasources tables to the lime report
Title: Re: How to set dynamically tableviews created to the LimeReports
Post by: Subst on June 14, 2024, 10:30:48 am
Hi!

look the
Code: [Select]
IDataSourceManager::addModel(const QString& name, QAbstractItemModel *model, bool owned)
and look UserManualEng.pdf for "External data sources"
Title: Re: How to set dynamically tableviews created to the LimeReports
Post by: plehmz on June 14, 2024, 11:59:32 am
Hi!

look the
Code: [Select]
IDataSourceManager::addModel(const QString& name, QAbstractItemModel *model, bool owned)
and look UserManualEng.pdf for "External data sources"
, I did this, and the model was shown in the lime report designer datasources tab, I placed this model report page. everything worked. But, my models dynamically changed, sometimes 1 sometimes 10 or n quantity, I want to dynamically place the model in the report page