Parent keyword - How to use

Hi,

I’m having some trouble to understand and use the keyword prefix page Parent.

My understanding about this topic, “Parent” should be used in context of embedded pages, in order to retrieve property from its parent page. But the documentation I found (Pegasystems Documentation) has very little information and, in my opinion, needs an improvement.

Anyway, I’d like to understand in which rules I can use this keyword. Seems out of scope in Data Transform. But where can this keyword be used? Can I use Parent for retrieving the parent page inside a pagelist. Can I use in when rule and activity? Can someone give more pratical example about its use?

Thanks, Daniele

@DanieleD9965 You are correct that the ‘Parent’ keyword is used in the context of embedded pages to reference properties from the containing page. In Pega Platform 8.8, you cannot use the ‘Parent’ keyword in Data Transforms. However, you can use it in Declare Index rules, Decision Tables, Decision Trees, and Map Values. You can also use the ‘Parent’ keyword in the Step Page field in Activities.

For example, if you have a property named ‘Customer’ on a top-level page and an embedded page named ‘Order’, you can reference the ‘Customer’ property from the ‘Order’ page using the ‘Parent’ keyword like this: Parent.Customer.

In the case of a Page List, you can use the ‘Parent’ keyword to reference properties from the containing page of the Page List. However, you cannot use it to reference the parent page inside the Page List itself.

As a Support Center moderator, I reviewed the answer and references for accuracy

Defining the pages and classes of a rule

Map Values

More about Declare Expression rules > Primary Page

@MarijeSchillern Thanks Marije,

a very clean explanation. thank you.