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

JavaScript functions to close modal dialog do not work

SA-52156

Summary



A pop-up window displays on double click of a repeating grid. Clicking Cancel on this window displays a confirmation message. Clicking OK on the confirmation window does not close it.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a case with repeat grid in the section
  2. Click add item in the account grid
  3. Click Cancel on modal dialog


Root Cause



A defect in Pegasystems’ code or rules.

Resolution



Perform the following local-change:

1. Change the CloseWindow function:

function CloseWindow(event)

{

var r = confirm( "Are you sure you want to close? Any changes will be discarded.");

if ( r == true) {

pega.u.d.activeGrid.cancelModal(event);

}

}

2. Add a parameter (script:event) to the runScript of the Cancel button.

Published March 5, 2018 - 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?

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