Home End User

Presistent criteria

edited June 2009 in End User
Hi,

When re-run the report, I want re-load previous criterias in autosearch
dialog.
How do ?

J-Pierre

Comments

  • edited June 2009


    You will need to use a database table or .ini file to store the search
    values outside of the report definitions.

    In the end-user solution main form, write a Delphi event-handler to
    implement the Report.Template.OnLoadEnd event to initialize the
    Report.AutoSearchFields[ ].SearchExpression and ShowAllValues properties
    with the values from the database or ini file.

    To save the last values used, you could use the
    Report.BeforeOpenDataPipelines or Report.AfterPrint event.

    Hope that makes sense. I am thinking if you implement it in the end-user
    main form, then the code only exists in a single place, and the end-user
    never sees it.



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

    Best regards,

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