Declare Expressions form - Completing the Expressions tab
On this tab, record the computations for the target property identified in the key.
Using the controls
Click any condition or a comparison to enable controls.
Control | Action |
---|---|
open icon | Click to review a property (for a field that contains a property reference). If the property does not yet exist, click to create a new property. |
expression selector | Click to display a drop-down list of all boolean expressions. |
row buttons | Select a condition to enable. Then click the Add item
icon to add a new condition, or click the Delete row icon to
delete the selected entry (Equivalently, use the Insert,
Shift+Insert, and Delete keys). To
re-order conditions, you can use the Windows drag-and-drop operation. If OR is selected as a boolean operator in an expression, click the Add item icon to add a new comparison, or click the Delete row icon to delete the selected comparison (Equivalently, use the Insert, Shift+Insert, and Delete keys). To re-order comparisons, you can use the Windows drag-and-drop operation. |
Display Label | When reviewing this tab, you can see a presentation using either property
names or the Short Description (
pyLabel
) of properties. Click to toggle the display. (Note that two or more
properties may have the same Short Description text.) |
Modifying expressions with drag and drop operations
To move a condition or a comparison to a different location, click and drag the small circle located to the left of the entry.
To copy a condition or a comparison, drag the entry while holding down the
CTRL
key.
Completing fields
Field | Description |
---|---|
Whenever inputs change | |
If | Click the drop-down button to select a boolean expression from the drop-down
list. The form changes to reflect the expression selected. Most expressions require parameters that may themselves be expressions. Use SmartPrompt to select a property as a parameter. |
"Boolean Operator" | Depending on the expression selected, choose THEN, OR, or AND operator. If the OR operator is selected, you may add comparisons to the expression. |
Set Property To | Select a computation type. The choices available depend on the type of the
Target Property .
|
(no label) | Enter an expression or identify a rule that computes a value for the Target
Property . Based on the Set Property To field, complete this field:
|
using entries in which | Optional. This field appears only when you select Sum of ,
Minimum of , Maximum of , Average
Of , True if Any , True if All ,
True if None , or Count of in the Set Property To
field. Enter an expression that evaluates to true only for those elements of the aggregate property that you want include in the computation. Leave blank to include all the elements. Typically, the expression involves a comparison and a property within the aggregate property, for example:
where .Color is an embedded property within a |
Otherwise Set Property | This expression determines the target property value when the conditions array is empty or all the condition rows evaluate to false. Complete both fields. |
(no label) | Select an expression type such as Value of . This field is
similar to the Set Property To field described above. |
Expression | Enter an expression that computes a value for the Target Property . You can
type the expression directly, or use the Expression Builder. For guided help with
composing expressions, click the Open expression builder
icon. In the expression, the page that matches the class of the Applies To key part of this rule. Your expression can reference properties on other pages using a page name and property reference, but these properties are not change-tracked. |