Question
Virtusa
Virtusa
US
Virtusa
Posted: Jan 22, 2021
Last activity: Jan 25, 2021
Last activity: 25 Jan 2021 9:06 EST
Closed
Retrieve Params from JavaScript
Iam calling and activity from Javascript using below. On that activity Im setting some Parameters which I need to access from calling Javascript once the activity is done. Since I need to pass that parameter for another Javascript function.
var oSafeURL = new SafeURL("Class.ActivityName");
oSafeURL.put("pzPrimaryPageName", "pyWorkPage");
oSafeURL.put("PageName", "pyWorkPage");
oSafeURL.put("flowName", flowName);
oSafeURL.put("flowAction", "flowAction");
var run= pega.util.Connect.asyncRequest("POST", oSafeURL.toURL(),{
success: function (data) {
*** Here I need to access the Parameters set from the activity****
failure: function (data) { } }, '');