expression Attribute (calculatedField Element)

Contains the formula, in the form of an XPath expression, to be evaluated. The result is stored in the target location.

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="expression" type="xsd:string" use="required" ></xsd:attribute>

Remarks

Example

The following is an example of the expression 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>