Open datapipeline early?
Hi,
I'm using Delphi 2009, RB 12.04 enterprise, and I'd like to know if it's
possible to open a datapipeline early, on the AutoSearchDialog?
I have an autosearchfield that I want to be a date picker but I want it
to default to a particular date (retrieved from our database) when the
autosearch dialog is first created, however it appears that the
datapipeline for the query that returns that date is not opened until
after the autosearch dialog has been closed. I don't want to use the
datapipeline as a lookuptable because then that changes from a
datepicker to being a regular combobox, preventing the user choosing
anything but the returned date.
Do you have any suggestion of how I can do this? This is an end user
report, so we only have access to RAP for any programming and not the
rest of Delphi.
Thanks,
Steve Branley
I'm using Delphi 2009, RB 12.04 enterprise, and I'd like to know if it's
possible to open a datapipeline early, on the AutoSearchDialog?
I have an autosearchfield that I want to be a date picker but I want it
to default to a particular date (retrieved from our database) when the
autosearch dialog is first created, however it appears that the
datapipeline for the query that returns that date is not opened until
after the autosearch dialog has been closed. I don't want to use the
datapipeline as a lookuptable because then that changes from a
datepicker to being a regular combobox, preventing the user choosing
anything but the returned date.
Do you have any suggestion of how I can do this? This is an end user
report, so we only have access to RAP for any programming and not the
rest of Delphi.
Thanks,
Steve Branley
This discussion has been closed.
Comments
There is currently no way to do this automatically via RAP without a
pass-thru function. Using a pass-thru, you could (using the pipeline)
directly access your dataset and pull the date information before the
AutoSearch dialog is created.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com