Expression¶
The Expression widget displays a label whose content is dynamically generated using data templates. It also allows for updating the data model with calculated values.
The Content
property specifies the template expression that determines the label's text. The calculated result of this expression is then stored in the data model element specified by the TargetXPath
property.
Example¶
The following example demonstrates how to create an expression that calculates a value based on three fields (Field1
, Field2
, Field3
) from the data model and stores the result in a field named AllFields
:
1 2 3 4 |
|
This example assumes that Field1
, Field2
, and Field3
exist in the data model and contain values that can be concatenated using the -
character. The resulting string will be stored in AllFields
.