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

Retrieving search criteria for Report Title

edited July 2003 in General
Hi,

I was wondering if it was possible to retrieve the user entered criteria for
auto search so that I can modify the Title of the report dynamically. For
example, I defined an auto search on Response field and the user entered
'N', The title will become 'All Invitees That Are Not Attending'.

Thanks.

Trhia

Comments

  • edited July 2003
    Hi Trhia,

    You need to use the Report.OnGetAutoSearchValues event to retrieve the
    criteria entered. From there you can then use these values to change any
    value you need inside the report before it generates. See the ReportBuilder
    help for the OnGetAutoSearchValues event for more information.

    Also, be aware that there is a Report.GetAutoSearchDescriptionLines
    procedure available to retrieve the autosearch criteria descriptions in a
    TStrings object in order to display them in a report memo.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Thanks Nico! works well

    Trhia


This discussion has been closed.