Need to know how records can be deleted from a talbe when user hits cancel report

In my report I am inserting some records in to a table in the before report trigger and deleting in after report trigger.
If the user hits the cancel report when the report is processing the records in the records never gets deleted from the table.
If anyone knows how this can be done, please help me.
Thanks in advance.

If your database is 8.1.6, you can try to use temporary tables. The data inside them is automatically deleted when the session (report) ends.
Also the data is private for each session, so no other user can see the data you have in the temporary table.
Did you think about the situation when two users will run the report at the same time? How are you handling this (the fact that their data may be scrambled...) The Oracle temporary table eliminates this possibility.
null

Similar Messages

Maybe you are looking for