You are on page 1of 7

Create 2 tbls header and line And set deleteaction on header.

(or parent table)

1.Delete action type:


cascade

Join datasoruce in the form

Del rec from header should del all rec in line at a time becoz we specified deleteaction in parent tbl delete action works

2. Delete action type Restricted

Now open the form and add some values in line w.r.t header

Now try to delete the record (1000) from header Will generate a warning. As follows

Ie. Until the related records in line are deleted the header record will not be deleted. This is the delegate action type : restricted

Delete actions: Type


None Cascade

description
Delete action disabled Deletes related records. [calls tables Delete()] Restricts deletion in the current table if data is present in related tables. [calls tables validateDelete()] Cascade the delete, even though records exist on related tables. [calls tables Delete() and validateDelete()]

Restricted

Cascade+Restricted

Note: This type of delete action is useful when you prefer a total clean-upwhen you delete a customer, you also delete all the transactions associated with that customer.

You might also like