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:
this
refers to the current class. All properties can be found using thethis.PROPERTY
syntax.CURPTH
describes the child class path if the method is called on a child class. If the method is called on the main class, CURPTH is empty.AEVENT
is equal to ADELETE_CONTROL_BEFORE.