Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Post upgrade, Page-Set-Message does not set messages on Harness

SA-14527

Summary



Page-Set-Messages does not set messages on harness after Pega 7.1.8 upgrade.


Error Messages



Not Applicable


Steps 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

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us