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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.