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:
(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:
well, exactly what i am struggling with right now...is there any progress on that?
ReplyDeleteThanks
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.
ReplyDeleteThanks