Support Article
Screen freezes on click of a button in PRPC 7.4
SA-95545
Summary
After closing a Screenflow case type, unable to create a new case.
Error Messages
Uncaught TypeError: Cannot set property 'value' of undefined
Steps to Reproduce
- Add a button that is configured to Add New Work.
- Add a screen flow for the assignment with a Start shape and which has Allow errors selected.
Root Cause
A defect in Pegasystems’ code or rules.
When the tabbedscreenflow is launched, the tabscreenflow Validation rules override the default Validation functions. Thus, a conflict is created if the screenflow is not completed; and the user reverts to the other Harness and performs a form Submit operation.
Resolution
Perform the following local-change:
- Create a script in the UserWorkForm as below.
<script>
function reAssigndisplayvalidation(){
console.log("Reassiging validations");
console.log(temp_validation_displayErrors);
validation_displayErrors = temp_validation_displayErrors;
}
</script>
- Add the below function in the Harness script which is a non-screenflow harness.
if(typeof validation_displayErrors!= "undefined" && validation_displayErrors.name !=="addErrorsToClipboard"){
console.log("Loading harness scripts");
console.log(validation_displayErrors);
temp_validation_displayErrors = validation_displayErrors;
}
- On Click of a button, create a new work item.
- In the action set, configure a Run script and invoke the function defined in Step1.
Published January 6, 2020 - 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.