Types of delete actions in axapta.
There are 4 types of Delete action in table for axapta.
A None deletion action will delete selected row in the table but nothing occurs to the table that relate to this table.
This cascading will take place whether the deletion is performed in code or directly by a user through the user interface.
This error will only appear if the deletion is performed through the user interface. A deletion from X++ code will be allowed to proceed and will not be cascaded to the related table.
Cascade+Restricted
The delete action performs an restricted, if the record of the table will be deleted directly and performs an cascade, if the record of the table will be deleted through a cascade delete action of a other table.
There are 4 types of Delete action in table for axapta.
- None
- Cascade
- Restricted
- Cascade+Restricted
A None deletion action will delete selected row in the table but nothing occurs to the table that relate to this table.
Cascade
A cascading deletion action will delete all records in the related table, where the foreign key is equivalent to the primary key of the current table. .ie. deleting the parent record will also delete the child record(s) in the related table.This cascading will take place whether the deletion is performed in code or directly by a user through the user interface.
Restricted
A restricting delete action will raise an error message if the user tries to delete a record, where records exist in the related table where the foreign key is equivalent to the primary key of the current table.This error will only appear if the deletion is performed through the user interface. A deletion from X++ code will be allowed to proceed and will not be cascaded to the related table.
Cascade+Restricted
The delete action performs an restricted, if the record of the table will be deleted directly and performs an cascade, if the record of the table will be deleted through a cascade delete action of a other table.