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

Not able to launch modal window on condition based

SA-88370

Summary



A Date control is configured in a section with Refresh-Section and Launch-LocalAction (modal dialog). The Local action has a When rule configured. The first time the value of Property1 is set to a date greater than Property2, the modal dialog is not launched. However, the second time the value is changed, the modal dialog is launched.


Error Messages



Not Applicable


Steps to Reproduce


 
  1. Navigate to Cell Properties > Actions.
  2. Configure a section with a DateTime control.
  3. Add a Change event.
  4. Add a Local Action.
  5. In Conditions, set the When condition to Associated Property > .Prop2.



    At runtime, the When condition evaluates correctly the second time and launches the modal dialog. When the date is changed the first time, the modal dialog is not launched.

Root Cause



The values from the Date fields are compared as strings in the propertyRefCondition function in the pzpega_ui_event_conditions JavaScript. This resulted in incorrect comparison. This change is in response to the conditions in the Action configuration which do not work.
For this to work, the properties referred in the condition must be either change tracked or be present in the Document Object Model (DOM).


Resolution



Perform the following local-change: 
  1. Configure the comparison property (for example, Property2) in the same section. To hide the Property2 control, add relevant styles in the UserWorkForm.
  2. Apply HFix-55949.
Suggest Edit

Published December 2, 2021

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