fralx / LimeReport

Report generator for Qt Framework
http://limereport.ru/
Other
403 stars 154 forks source link

Data table name as a variable #270

Closed tom947 closed 4 years ago

tom947 commented 4 years ago

Hi Fralx,

m_report.dataManager()->setReportVariable("table_name", "20200426151544_history"); Can i use data table name like select * from $V{table_name}?

Thank you!

fralx commented 4 years ago

Hi! Yes, it is possible. You have to use "nobind" in the variable like this: select * from $V{table_name,nobind}

tom947 commented 4 years ago

Hi! Yes,it works!! Thank you!