Question
Prudential Insurance Company of America
US
Last activity: 23 Apr 2018 13:12 EDT
Data not updated in clipboard - pega.u.d.refreshSection
Hi, We have a custom control for submit. We have a step to refreshsection and then call activity using httpRequestAsynch.
Sometime, I could see httpRequestAsynch is executed before refreshsection which results in data not available in clipboard when activity executed.
Step 1: pega.u.d.refreshSection("SectionName","");
Step2: var theUrl = pxReqURI + "?pyActivity=Test-Class-Work.ActivityName&pzPrimaryPageName=Datapage";
var theResponse = httpRequestAsynch(theUrl,"",50,400);
Positive Scenario: Refreshsection happens first and the activity called. In this case, data entered in UI is updated in clipboard because of Refreshsection. When activity executed after that data is found in clipboard and processed correctly.
Failure Scenario: Activity called before refreshsection. Hence, data entered in UI is not available in clipboard which results in process fail.
Failure scenario happens rarely and not sure how this has to be handled. Pleas help