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

Dynamic Layout does not refresh onChange of page list count



A dynamic layout in a section does not refresh onChange of the Page List Count which is triggered by an update on the popup window.

Error Messages

Not Applicable

Steps to Reproduce

  1. Add a dynamic layout in a section
  2. Invoke a section (for example, A) from this dynamic layout.
  3. Use a table in Section A with a page list as the source of the table (which contains the list of the uploaded documents of a particular category).
  4. Add a button in Section A,.
  5. Click the button. A popup window opens. In this case, the user has the functionality to upload the documents.
  6. Click Upload. The popup window closes and the page list is refreshed. This is observed from the Clipboard.
  7. On the main dynamic layout, configure a condition such that onChange of either the pzInsKey or pxResultCount, the dynamic layout refreshes. However, this works intermittently.

Root Cause

Issue with timing. If the Reload section call transpires before the SubmitModalFlowAction activity call, the issue occurs. This happens when files are uploaded in an overlay (this takes time).


Perform the following local-change: 
  1. Launch the local action on click of the link.
  2. Add the below script in the UserWorkForm.

    function customisedCallBack() {
    pega.u.d.submitModalDlgParam.userCallbackObj = function() {
    setTimeout(function() {
    var sectionDiv = pega.u.d.getSectionByName("<sectionName>");
    pega.u.d.reloadSection(sectionDiv, '', '', false, false, '', false);

  3. Invoke the script.

Published April 9, 2020 - Updated October 8, 2020

Was this useful?

0% 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