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

Set user-selected criteria to default to today's date

edited July 2004 in End User
Hi,

When an end-user runs a report and the criteria selection box displays, is
there a way to make it default to today's date as the selected criteria?

Regards

Alex

Comments

  • edited July 2004

    One solution is to use the OnBeforeAutoSearchDialog create event to
    initialize the AutoSearchFields[].SearchExpression values. You could also
    use the Report.Template.OnLoadEnd event to do this.

    Another approach would be to create a custom autosearch dialog that displays
    the default value. See RBuilder\Demos\AutoSearch\Custom AutoSearchDialog.




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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2004
    Hi Nard,

    Your first solution, I can do this in RAP? RB6.03

    Alex

  • edited July 2004

    Yes, the Report.OnBeforeAutoSearchDialogCreate event is available to RAP.

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



    Best regards,

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