Question

2
Replies
3289
Views
Close popover
Pooja Mithari (Pooja15295)
ARETEANS TECHNOLOGY SOLUTIONS PVT.LTD
Associate Consulatant
ARETEANS TECHNOLOGY SOLUTIONS PVT.LTD
IN
Pooja15295 Member since 2018 9 posts
ARETEANS TECHNOLOGY SOLUTIONS PVT.LTD
Posted: February 27, 2019
Last activity: September 24, 2019
Closed

Pega Mashup: Passing Parameters to Mashup

Hello,
I am working on the pega mashup data passing requirement. I am trying to get communicate between external application and Pega Mashup.I have tried with Setgadgetdata method with onload event but it is not passing the data to Pega gadget.
I've been trying to use the JavaScript method of doAction, but most of the documentation is listed as outdated.

Below is the code used by me which is not working.

Please let me know if any one knows.

Thank you

Code :
======

<!DOCTYPE html>
<html>
<head>
<script>
function setMashupName() {
alert("hi");
pega.web.api.doAction("PegaGadget","setGadgetData","pyWorkPage.VendorID","v1111");
}
</script>
</head>
<body>
Enter Vendor id <input type="text" id="VendorID"/>
<button type="button">Click Me!</button>
<!-- ********************** Begin Pega content ********************** -->

<script src ='http://1/prweb?pyActivity=pzIncludeMashupScripts'></script>

<div data-pega-gadgetname ='PegaGadget'
data-pega-action ='createNewWork'
data-pega-action-param-classname =''
data-pega-action-param-flowname ='pyStartCase'
data-pega-isdeferloaded ='false'
data-pega-applicationname =''
data-pega-threadname ='STANDARD'
data-pega-resizetype ='stretch'
data-pega-action-param-parameters ="{pzSkinName : '' ,UserIdentifier:'',Password:btoa('')}"
data-pega-url =''
data-pega-event-onload = 'setMashupName'></div>
<!-- ********************** End Pega content ********************** -->
</body>
</html>

***Edited by Moderator Marissa to update SR Details***

Data Integration SR Parallel
Moderation Team has archived post