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

Multiple Submits result in a Red X

SA-9138

Summary



The user's application has a listView. The listView has singleClick and doubleClick functions defined. singleClick updates only the clipboard, while doubleClick updates the clipboard and also submits a form. A red "X" appeared and the listView was broken for some use cases.

Error Messages



Not Applicable

Steps to Reproduce



Double click one row, and quickly double click on the same or another row.

or

Single click and Submit. Double click immediately on any rows in the listView.

Root Cause



The environment is very slow. As a result, even after adding busy indicator with zero interval, there is time for multiple clicks.

Resolution



Perform the following local-change:

var dblClickCount=0;
/* Below  function was added to be called whenever Submit button (using pxButton==>RunScript ) is being called. */
function submitClicked()
{
dblClickCount++;
}

function MemberResultDoubleClick(nRow){

pega.u.d.setBusyIndicator();
pega.u.d.gBusyInd.busyIndInterval = 0;
dblClickCount++;
if(dblClickCount==1)
{

MemberResultSingleClick(nRow);
doSubmit();
}
}

Published May 29, 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