refresh Attribute

Specifies when the expression will be evaluated.

Type

  xsd:string

Parent Elements

Element Description
calculatedField Defines an individual calculation, including the formula, when the calculation is to be performed, and where the result will be stored.

Definition

  <xsd:attribute name="refresh" type="xsd:string" use="required" ></xsd:attribute>

Remarks

The expression specified by the expression attribute is evaluated according to the refresh attribute of the calculatedField element. A value of "onInit" causes the expression to be evaluated when the node is initialized. A value of "onChange" causes the expression to be evaluated when one or more parameters of the expression change.

Example

The following is an example of the refresh attribute as it is used in the calculatedField element:

  <xsf:calculations>
 <xsf:calculatedField
  target="/my:myFields/my:average"
  expression="xdMath:Avg(../my:expenses/my:expense/my:amount)"
  refresh="onChange" />
</xsf:calculations>