Question
OCBC
SG
Last activity: 6 Feb 2018 8:21 EST
Modal dialog closing even when error messages are present on the page.
Hi,
I have configured a modal action to launch on a temporary page for editing grid items. While validating upon submission, the error messages are getting set on the page in clipboard but the modal dialog is getting closed. I have tried implementing https://pdn.pega.com/support-articles/validation-rule-does-not-prevent-modal-window-submission in my post processing activity but the issue is persisting.
I'm performing some validations in the validate rule and some in post processing activity as well. Can anyone suggest how to resolve the issue?
-
Likes (1)
Giulia Celeste -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
OCBC
SG
Hi,
Can anyone please respond?
Regards,
Sovan
Verizon Data Services
IN
Did you trace it , are you getting the errors in the tracer ? If you are getting the errors in the tracer that means your validation is working but the messages are not coming in the front end . Use a normal validate rule from the flow action , that will work for you .
OCBC
SG
Hi Nikhil,
The validation rule is working fine. But the modal dialog is closing and since the error is present on the temporary page a blank row is getting updated in the grid context. Since no error message is present in pyWorkPage context the flow proceeds to the next screen upon submission.
We need to stop the user from returning to the grid by displaying the error in the modal dialog itself. Any ideas as to how to prevent the modal dialog from closing when error is present on the page context the modal dialog is streamed on?
Regards,
Sovan
Pegasystems Inc.
US
Modal Dialog refers to a section. In this section add DisplayErrors(@baseclass) or ErrorList(@baseclass) and check the use case.
OCBC
SG
I have them in place but still no show!
Pegasystems Inc.
US
Hi,
What type of validation are you using? Did you select the checkbox
Hi,
What type of validation are you using? Did you select the checkbox
Regards,
Rachit
OCBC
SG
Hi Rachit,
We are using both validation rule and some complex validation in the activity. I have selected both the check boxes but still the same issue persists.
The validation are working fine as the error is being set on the page, but the modal dialog gets closed and the user is able to proceed to the next screen as the error is present on the temporary page.
PFA for ref screenshots.
Regards,
Sovan
Pegasystems Inc.
IN
Make sure you put an error on the primary page of the modal when there is an error on the temp page.
Flow action stops only when there is an error on the interest page( by default it is the primary page).
-Saikat
OCBC
SG
Hi Saikat,
I'm copying the error onto pyDisplayHarness.
If I copy the error onto the primary page, then the error messages will display in the back ground which I don't want. Need to restrict it to the modal dialog only.
Regards,
Sovan