Feedback

onAfterDeleteAll

This event occurs when a register is deleted on multiple rows forms.

This event occurs after clicking no button Exclude form multiple records. Or the form will execute the onValidate, onValidateSuccess and onBeforeDelete events, and the logo will execute all the SQL commands to exclude the records not the data bank, it will execute or the onAfterDeleteAll event.

Note: This event occurs only once regardless of the quantity of records excluded at a time.


Ex. In an order item form (multiple records), we want to delete the order if all screen items are deleted. Just in the event OnAfterDeleteAll use a block similar to the one shown below:

sc_exec_sql ("DELETE FROM orders WHERE order_id = {order}");