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

Conditional local action comparison doesn't update

SA-29961

Summary



A conditional local action which compares the number of results on a clipboard page (set in the same Action Set) fires based only on the first evaluation of the condition, regardless of any updates to the number of results.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add a text input to a section
  2. On-change of that text input, call an activity that returns some results to a clipboard page
  3. In the same On-change event, call a local action which has a condition that depends on the update of the clipboard page in Step 2

  4. At run time, first enter a value into the text input that would cause the condition to evaluate to "true" (in this case, a value that will match more than one employee name)
  5. After dismissing the overlay that correctly shows, replace the value with one that will only match one name - the overlay will still display as if the condition were still "true"
 


Root Cause



This is not a supported configuration of the conditions available on actions.

Resolution



The explanation for this is that the data-change meta-data on the control can only update if the DOM is refreshed (for example, with a section-refresh or post-value) and cannot update correctly in the middle of the execution of an Action Set
.  

If a section-refresh or post-value is added the data-change condition is updated correctly, but this interferes with the subsequent display of the overlay. 

Published November 13, 2016 - 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?

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