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

Autosearch Dialog

edited October 2003 in End User
I have an end-user report writer based on an example from with in the demos
area of RB.

When the autosearch dialog pops-up to collect information from the user, it
currently uses the actual field name instead of the field alias from the
fields tab.

For example, I can have a field selected on the fields tab of the query
designer called BDATE. This field could be a "Beginning Transaction Date"
or it could be "Birth Date". You are allowed to "rename" this fields on the
fields tab to have a more "friendly" name other that BDATE. It would be
nice to be able to use this "friendly" name on the Autosearch dialog that
comes up instead of the actual field name.

Is there anyway to do this?

Thanks in advance,

Bo

Comments

  • edited October 2003

    The Query Designer's Search tab does not currently allow the FieldAlias to
    be specified for AutoSearch fields, that is the limitation. When you modify
    the FieldAlias for a Select field, that field object is not related to the
    AutoSearch field object. (I will put this on our To Do list for future
    enhancements).

    In the Report.BeforeAutoSearchDialogCreate event, you can access the
    AutoSearchFields[] and modify the FieldAlias:

    Report.AutoSearchFields[0].FieldAlias := 'Customer Number';




    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.