News: LimeReport new version 1.5 has been releasedВышла новая версия LimeReport 1.5
Source
select * from Table where id=$V{id}
YourDlg.exec()==1function beforeDataPrint() { setVariable("id", YoourDlg.YourLineEdit.Text) reopenDatasource(Source) }
Got it finally. I'm used to adding '..' to user defined number fields in mysql queries. In this case they were the problem!
Reportpage1_DataBand1.preparedForRender.connect(beforeDataPrint);
function beforeDataPrint() { setVariable("id",2) }Reportpage1_DataBand1.preparedForRender.connect(beforeDataPrint);
setVariable("id",2)
connect
OK. I'll add the new line in the function Thanks