Event adelete_before
This event is called before the deletion of a line, after the automated consistency control of the referential integrity has been done.
The deletion can still be refused if an error is set in this event. If not, the deletion will be done in the database by the DeleteByKey
instruction. This instruction deletes the current line if the UpdTick value has not been modified.
For nested classes, this event is done in descending nesting order. This means that the event is done at the header level and then on every nested line. If a line has sub-lines, the sub-lines events are done after every line event.
Context
The following variables or properties are available in the 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_BEFORE.