Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Set AutoSearch values for Delphi

edited July 2009 in General
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.

Comments

  • edited July 2009
    To update on this, we did find the demos and looked at 6. Set End-User
    Search Criteria in Code but the report is still returns 0 for autosearch
    fields found.

  • edited July 2009
    Hi Richard,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.