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

  • After Hard Drive Erase...Macbook Pro Won't Boot

    Hi, So I was trying to do a fresh install of OS X on my 15" Mid 2012 Macbook Pro (Modified with a 512GB SSD and 16GB RAM). I turned the computer off and booted it into recovery mode.  Then I went to Disk Utility and erased the Macintosh HD partision.

  • How to set Reporting-UA for AS2 MDN ?

    I notice that the MDN that the B2B sends out looks like this : Reporting-UA:abc.com How can I set the abc.com to a different value ?

  • Websphere is not loading new properties file

    I am using Websphere Application Server 5.1 on WindowsXP. My application is on Struts. I create a war file and deploy it. I am getting all the text displayed from ApplicationResources.properites file. I changed some key-values in that file..but the w

  • Wierd Airport issue

    So I am at a friends house, and I cant see their wireless internet. My girlfriend has a macbook and can see the network fine. Also they have a intel mac mini that sees it fine also. I have all my settings to automatic and I can't even see the network

  • HT4527 did library transfer from old to new computer but some files can't be located

    I did a itunes library transfer from my old computer to my new computer. However when I select to play some of the songs from my new computer I get a message saying the file can't be located. This does not haqppen on the old computer. Any suggestions