Friday, May 25, 2018

How to call activity from javascript

From JavaScript, we have to pass a value as parameter to an activity. How can we invoke an activity by passing value from javascript without using scriptlets.
(No JAVA Code)(No server side code)
(Client Side Code using javascript).

Example:

1. You have "interest rate" textinput element in HTML.
<input type="text" id = "intRate">
2. Value of "interest rate" is stored in javascript variable "InterestValue".
<script>
var IntetestValue = document.getElementById("intRate")
</script>
3. How can we pass this as parameter to a PRPC activity "CalculateInterest".

Solution:



2 comments:

  1. well, exactly what i am struggling with right now...is there any progress on that?
    Thanks

    ReplyDelete
  2. Hi, Sorry for the delay. please refer to latest post now. Attached screenshot in solution on how to pass a parameter from form to Pega activity. Feel free to share if you have got any alternatives to achieve the same.

    Thanks

    ReplyDelete


HowToPega : All rights reserved and the contents are copyrighted to Pavan Kumar Naidu