Event ainsert_control_after
Description
This event is called after the AINSERT_CONTROL_BEFORE event and after the CONTROL event is done on the properties, but still before the insertion of a line in the database. It allows to perform more global controls. If controls are not fulfilled, an error can be triggered.
When nested classes must be controlled, such as a 3-level header / line / sub-line structure exists, the event is performed on the sub-lines associated with the first line first, then on the first line, then on the sub-lines associated with the second line, then on the second line, and so on, until all the lines have been controlled. Finally, the event is done on the header.
Context
The following variables or properties are available in the context:
this
refers to the current class. All the properties can be found using thethis.PROPERTY
syntax.this.snapshot
refers to the initial values for the current class. It allows a development partner to know if a modification was done on some properties.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 AINSERT_CONTROL_AFTER.