Home End User

How do I know if the report has been saved or not?

edited June 2003 in End User
Hi,
When the end-user creates a new report - I need to create some records in
the database. But when he exits without changes or presses "No" on the
saving query - I need to delete created records from the database.
The are no problems with creating records on the report creation.
But how do I know if the report has NOT been saved? (Or End-user left
withoud changes).

Regards,
MB

Comments

  • edited June 2003
    Hi Moisey,

    I would use the events of the dataset that keeps the end-user report templates.

    regards,
    Chris Ueberall;
  • edited June 2003
    Nope, it doesn't help. Datasets should not be used here, because dataset is
    not being referred when no changes are made.

    I mean the following:
    User enters ReportExplorer, presses "New Report button". Before the report
    designer is loaded - I need to write something to the DB. When user exits
    (he didn't touch anything in the designer or refused to save his changes)
    those records created upon entering should be deleted.
    Does anyone knows a way?

    THX,
    MB


  • edited June 2003
    When the user presses the new report button in the report explorer, you'll
    have to listen for this in the Report.Template.OnNew event. No new record is
    created on the database until the user tries to save the report to the
    database. Place a beep call in the dataset's AfterPost event handler to
    verify this.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    No,no,no. I already know it. I meant something else.
    Well ok, there seems to be no way to do what I meant anyway, so don't bother
    yourself with it anymore.

This discussion has been closed.