Issue while doing openAssignment from HTML
In HTML code on click of a button we are calling activity, in activity we have first step to call the flow, in next step copying the value of ‘pxAssignmentKey’ into ‘pyWorkPage.openAssignKey’. But activity is not executing completely before calling the openAssignment as below.
HTML Code:
<button onclick="Sample();" class='tButton' title='SampleButton' id="sButton" name="button">
function Sample (){
doFormSubmit(pxReqURI + '?pyActivity=Test-Work.SampleProcess');
var openAssignKey = "<pega:reference name="pyWorkPage.openAssignKey "/>";
openAssignment(openAssignKey);
}