Set AutoSearch values for Delphi
I'm trying to set autosearch values at runtime but I'm having a hardtime
getting this to work. I've tried to use
AutoSearchCriteriaByName('OrderHeader','OrderNumber') to change the search
value but it comes up NULL.
I 've found previous postings about looking at the demos but I can't find
these demos either.
getting this to work. I've tried to use
AutoSearchCriteriaByName('OrderHeader','OrderNumber') to change the search
value but it comes up NULL.
I 've found previous postings about looking at the demos but I can't find
these demos either.
This discussion has been closed.
Comments
Search Criteria in Code but the report is still returns 0 for autosearch
fields found.
Does the demos work correctly for you? My recomendation would be to access
the autosearch fields directly (like in the demo) using the
Report.AutoSearchField[] property or using the AutoSearchFieldByName
routine. Also be sure you are using the OnGetAutoSearchValues event.
Note that if you are using DADE to create your data access, you can easily
create and edit your search criteria using the TdaSQLBuilder object. See
the following articles on how this can be used...
http://www.digital-metaphors.com/rbWiki/DADE/SQLBuilder
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com