any page like "Top" to access the parent page of current page

My scenario:

A section → a Table attached to a page list List1 → in each row of the Table there’s an embedded section (Section1) in which a repeating layout attached to a page list List1(n).Sublist.

There’s a section (SubSection1) attached the repeating layout.

So, the UI is: in each row of the Table, we can see SubSection1 appear one or more times.

Now, the question is, in section SubSection1, a button action need run a data transform using its parent page as context, that is, List1(n), instead of the default context List1(n).Sublist(m).

How could I specify “parent” page for running this data transform in action set?

I know Top is refer to top page, but I need refer to the parent page here.

Our current solution is to put the DT inside a Refresh section action though actually I do not need refresh any section. In the Refresh action, I specify “Other section”: Section1 and run the DT.

This solution works however it need an extra refresh.

So wonder any better solution to refer to parent page?

Thanks.

@MaxonL16591286

From the section run a Data Transform on that page. Inside the Data Transform, define a Page type parameter and use function getParentPageName to set the Parent Page to that Page type Parameter. Now using that Page Type param as step page call another Data Transform to perform your task.

Hope that helps.

Thanks,

Kuntal

@KUNTALPAN

I can not find function getParentPageName

Is it a Pega function or Java function?

Thanks.

@MaxonL16591286

can use function to get parent page property value like: @Property.pxGetValueFromParentPageOfProperty(Primary,“FirstName”)

if the parent page name is needed for above sample, we can get current context page name in param.pzPrimaryPageName first, like pyWorkPage.List1(n).Sublist(m), then, use string operation to get the substring before last ‘.’, then we get pyWorkPage.List1(n), which is just the parent name.