Skip to main content

Table of Contents

Specifying pages and classes for a declare expression


Only available versions of this content are shown in the dropdown

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.

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.

    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.

Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us