DELETING FROM MASTER USING FORMS [message #224155] |
Tue, 13 March 2007 05:23 |
ataufique
Messages: 79 Registered: November 2006
|
Member |
|
|
I have a master maintanence form with records of master table 'A'
Now this master table has 4 child table with ON-DELETE-CASCADE
set at database level.
So if i delete the master record using SQL, the child records
get deleted.
How this can be done with form..as when i say delete_record
in forms..it gives error frm-40510 : unable to delete record.
Pls help, how the master record can be deleted such that the child record also gets deleted...
Regards,
ATaufique
|
|
|
|
|
Re: DELETING FROM MASTER USING FORMS [message #224359 is a reply to message #224196] |
Wed, 14 March 2007 01:32 |
ataufique
Messages: 79 Registered: November 2006
|
Member |
|
|
Hi.
LittleFoot - the error as i mention is that record cannot be deleted when child record exists.
alijeyan - The form contains only master records, So there is no relation avialable in form..
One option I believe is that writing DELETE FROM < Each child
table > in ON-DELETE trigger.
But i am looking for a option such as ON-DELETE-CASCADE( Auto).
Pls suggest..
Regards.
|
|
|
|
Re: DELETING FROM MASTER USING FORMS [message #225980 is a reply to message #225453] |
Thu, 22 March 2007 02:49 |
ataufique
Messages: 79 Registered: November 2006
|
Member |
|
|
Thanks Martin.
But tomorrow if i am adding more child table then again i have
to change the coding of pre-delete trigger to delete from
this child table.
Means the database design With on delete cascade is of no use as
i am allowing delete from FORMS only.
Trying to find some other way.
Regards,
Taufique Ahmed.
|
|
|