Event adelete_control_before

This event is called before the deletion of a line and works similar to the AINSERT_CONTROL_BEFORE event. In nested classes, the control is performed in descending order of the hierarchy, exactly as the insertion controls done in AINSERT_CONTROL_BEFORE. If the control is not fulfilled, an error can be triggered.

This is followed by the automated consistency control of the referential integrity based on the dictionary definition. For example, this can be the verification when a product must be deleted, but no sales orders have been created for this item.

Context

The following variables or properties are available in this context: