How do I know if the report has been saved or not?
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
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
This discussion has been closed.
Comments
I would use the events of the dataset that keeps the end-user report templates.
regards,
Chris Ueberall;
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
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
http://www.digital-metaphors.com
info@digital-metaphors.com
Well ok, there seems to be no way to do what I meant anyway, so don't bother
yourself with it anymore.