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

What is difference between TdaCriteriaOperatorType and TppSearchOperatorType

edited July 2002 in General
What is difference between TdaCriteriaOperatorType and TppSearchOperatorType
and when does one use them. I found this while dealing with
AutoSearchFields.

Add AddCriteriaField uses TdaCriteriaOperatorType

But TppCriteria(AutoSearchField.Criteria).Operator := doesn't seem to have any effect on the query

Do I have to use AutoSearchField.SearchOperator instead?

I'm very confused, please direct me here.

Comments

  • edited July 2002
    Yes, you should use the SearchOperator property of the autosearch field
    object. The difference is that the autosearch field is created from the
    autsearch criteria objects in DADE. DADE search criteria are persistent.
    They are saved down with the report definition. When you run the report,
    the search criteria are used to create autosearchfields on the report at
    runtime. In order for your search operator to have an effect, you need to
    set it on the appropriate autosearch field in the Report.AutosearchFields[]
    array.



    Cheers,

    Jim Bennett
    Digital Metaphors Corp.

This discussion has been closed.