Hi Sir,
Good Morning, I want to delete data from 3 forms on a single click Eg: in form 1
I have created a record that record I’d is related to form 2 and form 3
If I delete the record A11, then from all the 3 forms A11 record should be deleted.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To delete the related/child records from all the child tables, follow these steps:
In form-1, create a process to delete the records from child tables. The following is an example of the PL/SQL process code to delete the child records:
Change p1_id with your form-1 id column.
Make sure that this process should be placed before the close dialog process if you are using dialog forms.
You can also do this using the database trigger.
Create an after delete trigger on the form-1 table and delete the records from the child tables:
Hi sir,
Good Morning,will this trigger work for my scenario
CREATE OR REPLACE TRIGGER after_delete
AFTER DELETE
ON V_REGISTER
FOR EACH ROW
BEGIN
Delete from V_CONTACT where VOLUNTEER_ID = :OLD.VOLUNTEER_ID;
Delete from V_HEALTH where VOLUNTEER_ID = :OLD.VOLUNTEER_ID;
END;
Yes, 100% it will work.
Thanx sir,it works fine thnx for support
Thanks sir let me check and get back to u