Discussion
Turkiye Finans Kat?l?m Bankas?
TR
Last activity: 5 Sep 2015 3:35 EDT
call activity from javascript using post method
hi
how can I call activity from javascript using post method.
I used httpRequestAsynch(oSafeURL.toURL()) but I get an error because of big sized data.
example like this oSafeURL.put("StringInBase64" , FileAsBase64String);
FileAsBase64String parameter is below picture
how can I send this data to activity as parameter.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Harunc61,
PRPC Activities only execute on the PRPC Application Server not in the Browser. You can trigger the execution of a PRPC Activity through a browser side Event as an Action using the PRPC Client Event Editor. You can learn more about how to use the PRPC Client event editor from this Help Topic: (https://community.pega.com/sites/default/files/help_v71/procomhelpmain.htm).
Regards,
Henry
Pega Academy
Turkiye Finans Kat?l?m Bankas?
TR
hi
I can execute Activity from javascript but I can't send big data size using Get method. I want to use post method in javascript , how can I send big data sized parameter to activity.
Pegasystems Inc.
US
Hi,
Have you tried the Run activity action from the Events and Actions tab on a control? can you provide some more info on the Use Case?
Regards,
Vinay
Ai4Process
GB
Hi Harun,
i think you would have sorted this issue already.If not,solution - Create a HTML form at run time by document.createElement('FORM'); and attach all the parameters to it as elements and form.submit() using POST method in java script.
call this NonAutogenerated Section on Refresh through hidden section at invocation point.
NIIT Technologies Limited
AU
Below code calls activity using POST.
var setPropURL = new URL([ClassName.ActivityName]);
var paramData = new URL();
paramData.put("ParamPropertyName","Value");
var callback;
var request = pega.util.connect.asyncRequest('POST', setPropURL.toURL(),callback,paramData.toEncodedPostBody());
BitsInGlass
IN
Hi,
how can I call activity from javascript?
-
Rim CHTOUROU
Tata Consultancy Services
IN
Hi, how to launch a new harness and activity from Javascript.?