Home » Developer & Programmer » Forms » Pre-delete trigger
Pre-delete trigger [message #159468] Sun, 19 February 2006 23:39 Go to next message
juicyapple
Messages: 92
Registered: October 2005
Member
I have problem to delete record through oracle form which is in master details form. Thus, I add a pre-delete trigger to delete the details of the records, but when I run the form, it doesn't raise the trigger...

Have any idea? I just want to delete records...

Thanks
Re: Pre-delete trigger [message #159491 is a reply to message #159468] Mon, 20 February 2006 00:56 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
If the master-detail relationship is created properly, there is the ON-CHECK-DELETE-MASTER trigger which fires before the PRE-DELETE trigger you wrote. Finding child records, it raises an error and PRE-DELETE trigger is never executed.

Therefore, move the code from the PRE-DELETE trigger into the ON-CHECK-DELETE-MASTER trigger (or call first from the second one; should be the same).
Re: Pre-delete trigger [message #159497 is a reply to message #159491] Mon, 20 February 2006 01:04 Go to previous messageGo to next message
juicyapple
Messages: 92
Registered: October 2005
Member
Yes, thanks.

Re: Pre-delete trigger [message #159499 is a reply to message #159497] Mon, 20 February 2006 01:06 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Moved to Forms

MHE
Previous Topic: error on connect sqlserver
Next Topic: how to query records through forms6i
Goto Forum:
  


Current Time: Fri Sep 20 05:53:59 CDT 2024