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

Harness is reloading instead of Section refresh

SA-2386

Summary



Harness is getting reloaded instead of section refresh.

Error Messages



NA


Steps to Reproduce



1. Create section with password of obfuscated fields.
2. Configure refresh section behaviour on button click.
2. click button


Root Cause



PRPC refreshes the Harness instead of section if section contains either password or obfuscated fields.

Resolution



This is en expected behaviour (Reloading the harness instead of Refresh section )when section has password or obfuscated controls.

Reason for this behaviour
 
1.No browser is designed to hold the password values on the refresh happens.
2.In order to retain the password values even after the refresh happens, the whole harness is refreshed to retain the password     values.
3.This harness refresh is causing the re-mapping to pyWorkPage and not the current page.


If refresh section happens, values of password or obfuscated fields will be cleared.

Follow below approach in order to do refresh the section.
 
1. Create section and make it as "Non-AutoGenerated section" by un-checking "Auto-generated HTML?" option in HTML Tab of section.

2. Write below code
    <script>
        pega.u.d.disablePasswordReload();
    </script>
3. Save the section.
4. Drag this section into the section where you configure "Refresh section" behaviour.
 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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