Parameters of Query
I need to set query params from code (NOTE: not from Delphi, but from the
designer) to "drive" my querys with params of different sources (more
queries, or as result of some calculation).
Now I can write the query manually with params, but I cannot set its params
values from code.
How can I do it?
Thank you in advance,
Cristian
designer) to "drive" my querys with params of different sources (more
queries, or as result of some calculation).
Now I can write the query manually with params, but I cannot set its params
values from code.
How can I do it?
Thank you in advance,
Cristian
This discussion has been closed.
Comments
One option is to use Delphi code and use the Report.Template.OnLoadEnd event
to extract the TdaSQL object from the dataview and modify the SQL.
www.digital-metaphors.com/tips/ExtractSQLObject.zip
Most of the RAP events occur too late, after the report engine has already
initialized the datasets. The exception is the BeforeAutoSearchDialogCreate
and OnGetAutoSearchValues events. However these events only fire if
AutoSearch criteria are present.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com