Calculatedtrigger (attribute of property)

From JRapid

Jump to: navigation, search

'calculatedtrigger is an attribute of property.


Contents

Description

The calculatedtrigger attribute specifies the event that triggers the calculation of the property value according to the expression specified in the calculated.

Possible values:

  • 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.

Usage

<property 
         ...
         name = NAME
         calculated = FPATH
         calculatedtrigger = "onchange | onload | onchangenew" 
         ...
/>

Example

          <property calculated="subtotal * (1 - 5 * discount div 100)" calculatedtrigger="onchange"
          label="Total" name="total" type="integer"/>


See also

Personal tools