LimeReport Forum
General Category | Основное => Requests | Пожелания => Topic started by: steros on February 27, 2020, 02:00:12 pm
-
I have to set sql of datasource based on dialog form input, like:
... where [db_field]=$S{Dialog.lineEdit.text}
How can I do ?
Thanks
-
Hi!
You can create a query with a variable like this:
Select * from customers where CustomerId = $V{CustomerID}
then create some dialog with the line editor for example.
In the init script you can write something like this:
Dialog.lineEdit.text = getVariable("CustomerID")
Dialog.exec();
setVariable("CustomerID",Dialog.lineEdit.text)
-
Perfect, it works ! Thank you very much !