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

Validation failure due to pxButton Control

SA-12019

Summary



When clicking on the Submit button of the flow action, Submit is not converting into actual  "Submitting..".
So, user thinks the  form is submitting and again clicking one more row then subsequent request is firing and server throws an exception.


Error Messages



Not Applicable.

Steps to Reproduce



1) Create a Flow with three assignments.
2) At First assignment, take input.
3) At Second assignment, show the listview based on input in first assignment.
4) Write custom java script for single click and double click of the row in list view.
5) Observe that it is taking some time and submit is not converting to submitting in the list view screen on double or single click.


Root Cause



The root cause of this problem is software use or operation error:
The custom java script is not composed in a proper way. So, Request handling is not properly done on the custom java script.


Resolution



This issue is resolved through the following local-change:
Modify the single click and doble click custom java script functions of list view in the following way: 


function SingleClick(nRow){


var psudoSubmitButton = document.getElementById('submitButton');
psudoSubmitButton.onclick= function(){
psudoSubmitButton.value = "Submitting..";
psudoSubmitButton.disabled = true;
doubleReqFlag = 2;

}

d.GroupID.value = document.getElementById("GroupID"+nRow).value;

var oSafeURL = new SafeURL("HAP-Data-Party-Member.SelectedMemberResult");
oSafeURL.put("Row", nRow);
httpRequestAsynch(oSafeURL.toURL());

OptionSelected = true;

}

var doubleReqFlag = 0;

function DoubleClick(nRow){

var psudoSubmitButton = document.getElementById('submitButton');
psudoSubmitButton.value = "Submitting..";
psudoSubmitButton.disabled = true;

if(doubleReqFlag == 0) {
doubleReqFlag = 1;
SingleClick(nRow);

doSubmit();
}
}
 

Published February 27, 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