Support Article
Post upgrade, Page-Set-Message does not set messages on Harness
Summary
Page-Set-Messages does not set messages on harness after Pega 7.1.8 upgrade.Error Messages
Not ApplicableSteps to Reproduce
1. Create a Harness. Embed a section in the harness.
2. Create an Activity to:
- Use Page-Set-Message inbuilt function to set messages on the Primary page for that section.
- Use Show-Harness inbuilt function to display harness.
Root Cause
The error messages are set correctly but an additional call to pzGetTrackerChanges wipes out the error tables.Resolution
Configure pzKeepMessages as true in the getTrackerChanges API. This local-change needs to be introduced in UserWorkForm.
<script>
/*
@Handler
@protected Will send ajax request to the server when ever there is no ajax request to is in progress. This request will get all the changes from the tracker and it will evaluate client conditions.
@return $void$
*/
getTrackerChanges: function() {
if (pega.u.d.isAjaxInProgress()) {
return;
}
var strUrlSF = SafeURL_createFromURL(pega.u.d.url);
strUrlSF.put("pyActivity", "pzGetTrackerChanges");
strUrlSF.put("pzKeepPageMessages","true");
pega.u.d.asyncRequest('POST', strUrlSF);
}
</script>
Published October 5, 2015 - 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.