Specifying pages and classes for a declare expression
Define pages and classes that store properties to ensure that declare expressions can access these properties to correctly calculate values for your business scenario. As a result, you increase the level of automation in your application because automatic calculations can occur without user intervention.
- In the navigation pane of Dev Studio, click Records.
- Expand the Decision category, and then click Declare Expression.
- In the list of instances of declare expressions, click the expression that you want to edit.
- On the rule form, click the Pages & Classes tab.
- In the Page name field, enter the name of the page that contains
the property that this rule references.
Note: To identify a top-level page, you can add a row with the keyword Top as the page name. With the Top keyword, you can use the syntax Top.propertyref to identify properties that you reference on other tabs of this rule form.
Declare Expression rules can apply to embedded pages that appear within top-level pages with various names. In such cases, you can use the keywords Top or Parent in the page name. If the Page Context key part of this rule is not blank, this tab automatically includes a definition of the Top and Parent keywords.
- In the Class field, select the class of the page.
- Optional: To add more pages and classes, click Add item, and then repeat steps 5 and 6.
- Click Save.
Previous topic Defining expressions in Declare Expression rules Next topic More about Declare Expression rules