In Pega 7.2.2, I see refresh of Parent section (which is calling the modal dialog) does occur. I have configured below for a link in the Parent section(say Parent):
click >> Local action (target: dialog), Refresh this Section.
Also, I tried with below configuration:
click >> Local action (target: dialog), Refresh current Harness.
In both cases, Refresh of the section(Parent) does occur when the modal dialog is closed through 'X' button.
Could you elaborate on what is not working. What is the expected behavior post refresh of Parent window? For example: If the Parent page has dropdown field with value 'Red' selected(default been NoColor), do you expect the parent page to display the value of this field to be NoColor post refresh on closing the modal window.
Share screen shots displaying the configuration and how the use case is executed. This will help us in recreating the use case in-house.
Adding Refresh action after Local action will result in 2 refreshes of same parent section when local action is submitted (1st as OOTB when modal is closed and 2nd from actions).
Refresh action should be conditionalized (to run only when modal is cancelled). Explicit refresh is not needed if user submits the location action. This cannot be done as Pega evaluates such conditions at load time.
Do we have any way to know if user submitted or cancelled the modal dialog? And based on this to skip the Refresh action?