Event get

Description

This event is called when access to a property value is done. For example, in a formula that needs the value to perform a control or make an assignment on another property. This event is also called every time the value of a property is read. This means that it is called also in all the CRUD operations when a computation based on the value of the property is performed. The only exception to this rule is that a GET on a property is not called within the SET accessor for the same property.

Context

The following variables are available in the context:

  • CURPRO variable gives the name of the concerned property.
  • AINDEX variable gives the current index if the property is an array. This is available only on some system classes. No variable arrays exist on persistent or normal classes.
  • this is the current instance where the property is located.

To return the value of the property, the developer has to assign This.PROPERTY. Of course, in this particular case, this assignment won't trigger the CONTROL rule nor the PROPAGATE rule for the property.