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

Retrieving auto search criteria to print

edited July 2004 in End User


How do I retrieve the auto search criteria entered by user and print
them on the report?


Thanks,

J. Michael Eubanks

Comments

  • edited July 2004

    I tried and use Report.AutosearchFields[0].Value but I was not able to
    get all the information.
    I have two autoseach values, the first is a single date field using the
    equal operator. The second is a time range, begining and ending time
    using the between operator. When I used this value
    Report.AutosearchFields[0].Value it gave me the date. When retrieved
    this value Report.AutosearchFields[1].Value I retrieved the
    first/beginning time only. When I used this value
    Report.AutosearchFields[2].Value I got a runtime error. How do I get
    the ending time?

    Using Report Builder Enterprise 7.03, Delphi 6 Pro, and Windows XP


    Thanks,

    J. Michael Eubanks
    Ideal Software Systems


  • edited July 2004

    1. Check out the RBuilder\Demos\AutoSearch\Build Description of AutoSearch
    Settings example. You basicall can use the Report.AutoSearchDescription
    property or call Report.GetAutoSearchDescriptionLines.

    2. You can also build the description yourself, but you need to use the
    AutoSearchFields[].SearchExpression property to access the values entered by
    the user. If you use the between operator the values will be in a comma
    delimited string.


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

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