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

When rule with Associated property is not working

SA-35350

Summary



User has configured the drop-down and onchange configured smartinfo action with when condition Associated property.

The smartinfo is getting displayed based on the previous value of the drop-down and it is working fine when user hardcode the value in when condition.

The issue is happening only if we set the target property value using Data Transform.


Error Messages



Not Applicable


Steps to Reproduce



1) Create a drop-down with source as a data page.
2) In the actions menu, add an onchange action.
3)Above On-change, try to display a smart info conditionally, by adding a when condition on associated property.
4) Compare the value with another property value(as target).
5)Set the target value using Data transform. The smart info is not displayed when condition is met, condition is evaluated based on previous value in the drop down not the value selected by user.


Root Cause



A defect in Pegasystems’ code or rules.
When client side when condition evaluation is happening and property value is not present in the DOM, then it gives the server side evaluated value which is having the previous value because action got appended to the queue and at that time, the value was false.

Resolution



Perform the following local-change:

Add a hidden field with the same property name which is getting set on data-transform in the section where the drop-down is configured.

Suggest Edit

Published April 7, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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