Support Article
No alert message by system even when form is dirty
SA-4786
Summary
User reported that no alert message are thrown by system even when they select some value in DynamicSelect control and try to close the work object by clicking the redcross(X) icon present on workobject tab header.
User is expecting a message like this :
"You are about to replace an open work item which has changes that have no been saved.Press OK to continue and lose the changes press cancel to return to the modified form"
Error Messages
Dirty form alert message is not displaying.
Steps to Reproduce
1. Open any Work Object with DynamicSelet control present.
2. Select some value in the dropdown.
3. Try to close the work object by clicking on Red Cross (X) icon.
No alert message is coming.
Expecting the below message,
"You are about to replace an open work item which has changes that have no been saved.
Press OK to continue and lose the changes
press cancel to return to the modified form"
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules Pega_ui_doc JS file
By design PRPC considers section refresh as document dirty.
On section reload, PRPC sets pega.u.d.gSectionReloaded to true.
This issue is because of not setting the above property to true. Updated following if expression
if(reloadElement.getAttribute("readOnly") != "true")
this.gSectionReloaded = true;
Resolution
This issue is resolved by hotfix item HFIX-20329.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.