Event aupdate_before
Description
This event is called after all the other AUPDATE_CONTROL_* events and just before the update. The update will then be done in the database by using the SetInstance instruction, followed by a RewriteByKey instruction. The update can still be refused if an error is set in this event.
Context
The following variables or properties are available in the context:
thisrefers to the current class. All properties can be found using thethis.PROPERTYsyntax.CURPTHdescribes 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.this.snapshotrefers to the initial values for the current class. All properties can be found using thethis.snapshot.PROPERTYsyntax.AEVENTis equal to AUPDATE_BEFORE.