Calculatedtrigger (attribute of property)
The calculatedtrigger attribute specifies the event that triggers the calculation of the property value according to the expression specified in the calculated.
- onload: the property value is calculated when the form is loaded.
- onchange: the property value is calculated when a change is made to the properties on which it depends.
- onchangenew: the property value is calculated the first time that the properties it depends on are set.
If the trigger attribute is not set, the property value is calculated onload and onchange.
<property ... name = NAME calculated = FPATH calculatedtrigger = "onchange | onload | onchangenew" ... />
<property calculated="subtotal * (1 - 5 * discount div 100)" calculatedtrigger="onchange" label="Total" name="total" type="integer"/>