Question
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);
}
You can use oSafeURL to call the activity instead and on success function (which gets called after activity completion you can call open assignment.)
Let us know if this helps