Question
Oligos
FR
Last activity: 8 Aug 2022 13:04 EDT
In action sets when conditions are evaluated on screen load instead of on event
Hello Pega community,
In a section I have a button with an action set. On click:
- Action 1 - Run data transform: runs some business logic to find a customer. If a customer is found, set .pyText == .ContactId. Otherwise .pyText==""
- Action 2 - [WHEN .pyText==""] Local action: no customer was found - display a local action containing an error message
- Action 3 - [WHEN .pyText!=""] Landing page: a customer is found - open their 360 view
The issue is the when conditions are evaluated on load of the section, and not on click of the button. As when the section loads my data transform has not run yet, when clicking the button I always get the Local action, even if a customer has been found.
How can I force Pega to re-evaluate the when conditions? Is there a workaround for this issue?
Thank you for your help.
***Edited by Moderator Marije to add Capability tags***