|
|
Record the computations that constrain the property values. Each row defines a separate constraint. Enter at least one row. Order is not significant.
When the system detects that a constraint fails, it adds a message to the page of the property identified in the left portion of the Require That field (if any). The presence of this message ordinarily prevents the system from saving the page containing this property value to the database.
You can cause a specific additional message (Rule-Message rule type) to become associated with that property or another property when the constraint fails, in the Else row.
Detection of this message and any later processing to correct the constraint — such as displaying a message to a user, recalculation of the property value, and so on — is an application responsibility.
Each property involved in the constraint expression must be on the primary page (the page that has the class corresponding to the Applies To key part), or on an embedded page identified in Page Context field on the Pages & Classes tab, or on a linked property page.
Click any constraint 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 exist, click the |
expression selector |
Click the |
row buttons![]() ![]() ![]() |
Select any constraint to enable. Click the |
Display Name Display Label |
When reviewing this tab, you can see a presentation using either property names or the Short Description ( |
Modifying constraints with drag and drop operations
To move a constraint to a different location, click and drag the small circle located to the left of the entry.
To copy a constraint, drag the entry while holding down the CTRL
key.
Field |
Description |
When |
Click the Most expressions require properties. Use |
Require that |
This area defines the constraint. Click the Most expressions require properties. Use You can't specify single elements of a pyWorkPage.pyWorkParty().pxCity = "Chicago" |
Else add message |
Optional. Type the text of a message within quotes or identify a Message rule. Use
Some messages require parameters. To provide fill-in-the-blank text values for each parameter, follow the key name with a backslash character, the single letter t, and text for each message parameter. |
to |
Ordinarily, choose the property that failed the constraint. Some constraints involve two or more properties, on the same or different pages. Select the one most likely to have a new value that will restore the constraint condition. For example, if the constraint is of the form BoxWidth IS LESS THAN 40 then the message can be associated with the BoxWidth property. If the constraint has the form BoxWidth IS LESS THAN BoxLength then the message can be associated with either property.
|