Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

getPageNameReference function behavior incorrect

KCP-573

Summary

The getPageNameReference function fails to read the absolute data page name.

 

Error Messages

Not Applicable

 

Steps to Reproduce

Use the getPageNameReference function to retrieve the name of a datapage in an activity.

 

Root Cause

In an activity that is invoked before the activity where the function is being used, a property set is present that performs, D_Interaction[InteractionId:Param.InteractionId].xxxxx=D_DataPage[Profile:Detail,AccountNumber:pxThread.User_Session.AccountNumber]

A short-cut is taken instead of copying the values when the right hand side page does not have a parent. However, in this case, the right hand side page is a data page which should always have a parent. The short cut sets the parent of D_DataPage to D_Interaction instead of performing a copy. This explains why getReference returns D_Interaction instead of D_DataPage.

 

Resolution

Perform the following local-change:

Use Page-Copy or data transform instead of the property set.

Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration 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 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