AutoSearchDescription
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
clear your cached messages.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com