Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: How to set dynamically tableviews created to the LimeReports  (Read 4338 times)

plehmz

  • Newbie
  • *
  • Posts: 7
    • View Profile
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

Subst

  • Sr. Member
  • ****
  • Posts: 451
    • View Profile
Re: How to set dynamically tableviews created to the LimeReports
« Reply #1 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"

plehmz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How to set dynamically tableviews created to the LimeReports
« Reply #2 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