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

DT condition expressions evaluate incorrect property on mobile

SA-51695

Summary



The When condition evaluates incorrectly in data transforms on a mobile device when nested in the Update Page blocks. This occurs in In iOS.

When running a property update offline on a mobile device, Console logs are generated indicating that the incorrect context is evaluated,

-Running data transform PegaSample_SetFirstName in pyWorkPage page context
-expression: translate: pega.process.expression.getValue(".FirstName","pyWorkPage.Person")=='Pega'

pyWorkPage.Person.FirstName is evaluated instead of pyWorkPage.Person.Name.FirstName with the Pega application.

This occurs when passing an embedded page as pageContext param to pega.offline.runDataTransform().



Error Messages



Not Applicable


Steps to Reproduce



Create a data transform containing a When condition in the Update Page block using an embedded property as part of the expression.

For example:

1. Update Page ".Person.Name" (embedded page on pyWorkPage)
1.1. When '.FirstName== "Pega"'
1.1.1. Set .Property = "Test".



Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change:

Update the data transform rule such that .Person.Name is split in to two Update steps.



 

Published November 29, 2018 - Updated October 8, 2020

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