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

Refreshing data from database

edited February 2005 in End User
Hi,

I'm using RB 6.02, Delphi 5.0

I've created a customized RAP function the runs a StoredProcedure in the
database. So, I call this function in OnAutoSearchDialogClose, passing the
user parameters' set. The report is a crosstab report.

The first time I open the report, it works fine. However, if the user
changes the values of the parameters and runs the report again, the changes
doesn't appears at the report, despite the table in the database changes,
that is, the procedure run fine with the new values.

How can I make a refresh of the data in this case ?

Thanks in advance,

Mauro Assis
Athena

Comments

  • edited February 2005

    You might try calling Report.Reset and Close the stored proc, set the
    params, and re-open it.

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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2005
    Close the stored proc ? I run the stored proc, it doesn't returns any result
    set. It fill a table in db matching the parameters the user set.

This discussion has been closed.