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

AutoSearchDescription

edited August 2002 in General
I've used the code in the demo projects that converts the AutoSearch fields
to a readable description:

ppMemo1.Lines.Text := ppReport1.AutoSearchDescription;

However, some of the search fields have identifiers in them and do not make
any sense unless converted to english. Eg if I search on a Day_Of_Week
field the SearchExpression becomes is 2,3. How can I change it so that the
description that is read as "Monday", "Tueday".

Another question, what's the differnece between:

AFS.SearchExpression
AFS.SQLString
AFS.FilterString
AFS.FormattedExpression

Where AFS is an TppAutoSearchField?

TIA

Comments

  • edited August 2002
    Are you using DADE? If so, then you can use the DataDictionary component to
    define the field aliases. If you are creating the search fields at runtime
    on the report, then the field alias parameter controls the field alias text
    to be displayed. You can always create your own version of this to format
    the text/translate it however you want. Create a function in your class
    that does what our code does. Have a look in ppReport.pas for
    TppReport.GetAutosearchDescriptionLines and also see ppDB.pas for the
    function TppAutoSearchField.Description for code that builds the strings.

    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited August 2002
    Any answers on this one yet????


  • edited August 2002
    There is a response, please delete your news account and recreate it to
    clear your cached messages.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.