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

Onclick of Previous/Next button of ModalDialog error is coming



Onclick of Previous/Next button of Modal dialog window "Invalid argument" error is coming on screen.
Facing this issue only on Review harness but not on Perform harness.

Error Messages

IE Error description : Invalid argument

Steps to Reproduce

1) Open Comments tab of a work object having multiple comments in grid.
2) Double click on any of the row.
3) Modal Dialog window having details of selected comment gets open.
4) Now click Previous or Next (which ever is available/enable on screen) button.
5) Popup window having "IE Error description : Invalid argument" error gets displayed.

Root Cause

It was found that this.isLocked boolean was coming as true in review harness .
This was causing the goToNext function to enter an if block and return at the end of the if block.
The generated response was improper because of this early exit of the function.
s a result, the response handling functions were throwing js errors.


Issues is resolved through below local change and suggested to create a non-auto generated section and include this section in the same section that contains the grid. (Infact below the grid layout).
We have also overridden the goToNext and goToPrevious functions in a way that even if later there is any hotfix, it will still be called . 


var origNext;
var origPrev;

origNext = pega.ui.grid.prototype.goToNext;

origPrev = pega.ui.grid.prototype.goToPrevious ;


pega.ui.grid.prototype.goToNext = function(e, templateName)



pega.ui.grid.prototype.goToPrevious= function(e, templateName)




Published January 31, 2016 - 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