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

Refresh Section does not refresh the section provided



Customer wants to refresh a section on a mouse click of his custom control. To achieve this he calls an activity , to do some property-set and then calls out of the box reloadSection activity as the last step of his activity. Customer notices that his section is not refreshed.

Error Messages

No error message.

Steps to Reproduce

1. Consider a simple control as follows

function test() {
<** Custom code to TestActivity - which in turn calls reloadSection activity **>

<input type="button" onclick="test()" value="Click Me!">

Clicking on the button did not refresh the section

Root Cause

Calling reloadSection from an activity does not help since the activity runs at the server and no data is returned to the client.


Instead of calling your activity which in turns calls reloadSection activity, call the reloadSection api and pass your activity as a pre-processing activity. For e.g.

function test() {
var sectionToReload = pega.u.d.getSectionByName("sectionName",'',"");
pega.u.d.reloadSection(sectionToReload ,"YourActivity",'', false, false, '-1', false);

<input type="button" onclick="test()" value="Click Me!">

sectionName : section to reload
YourActivity : pre-processing activity that needs to be run before the reload.
Suggest Edit

Published June 12, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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