Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Specifying pages and classes for a declare expression

Updated on January 14, 2022

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.

Before you begin: Create a declare expression. For more information, see Creating Declare Expression rules.
  1. In the navigation pane of Dev Studio, click Records.
  2. Expand the Decision category, and then click Declare Expression.
  3. In the list of instances of declare expressions, click the expression that you want to edit.
  4. On the rule form, click the Pages & Classes tab.
  5. 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.

  6. In the Class field, select the class of the page.
  7. Optional: To add more pages and classes, click Add item, and then repeat steps 5 and 6.
  8. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us