Support Article
Validation does not work on the Bulk Transfer Modal window
SA-76319
Summary
Validation does not work on the Bulk Transfer Modal window.
Error Messages
Not Applicable
Steps to Reproduce
- Navigate to Bulk Transfer.
- Select items to transfer.
- Click the Transfer action and proceed without providing an operator or work basket. The modal window is submitted without validation.
Root Cause
In the pyModalTemplateBulkProcessing section, the OK button configuration did not check for client side validations if any exist. The modal dialog closes when validation errors exist. There is no Submit action on that configuration. Instead, if errors are present, the validation errors display in the processingResults column in the pyBulkProcessingAssignDisplayNotes section.
Resolution
Perform the following local-change:
- Add the below script in the UserWorkForm.
<script>
function submitModalDlg() {
doModalAction(pega.u.d.submitModalDlgParam,event)
}
</script>
- Navigate to the pyModalTemplateBulkProcessing section.
- Remove the doModalAction method in the runScript method and invoke the submitModalDlg function.
Published April 4, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.