Question

Eviden
GB
Last activity: 23 Apr 2024 8:29 EDT
How to pass captured values from Pega Web mashup to Pega platform application ?
I am trying to pass the captured values from Pega Web mashup to Pega platform application. I am using "Data Instance First" design pattern. I am using "Display a page" action to capture the data in a web mashup. I want to validate the captured data in PEGA and then persist that data in the DB before creating a case.
I have gone through some of the articles but I am not sure which one is correct:
a) Use data-pega-event-onpagedata mashup attribute to call a function and then use the Javascript function doAction() using syntax pega.web.api.doAction([gadgetname],[action],[parameters])
b) Using syntax PegaA_params={Context:'<%=AppContext%>',ParamOne:'<%=JavaObject1%>',ParamTwo:"<%=JavaObject2>"}
c) Using syntax data-pega-action-param-parameters='{UserIdentifier:"xxxxx",Password:"yyyy",ID:"1"}'
I have also read that if using "Create a new case" action, I can copy the parameters (Option b above) into clipboard using pyDefault data transform that gets called at the time of case creation.
Questions:
1. As I am using "Display a page" action, how can I retrieve the values captured in the web mashup into PEGA ?
2. Can anyone please share a working mashup code snippet which meets my criteria?