Question

2
Replies
3589
Views
Pooja Mithari (Pooja15295)
Cognizant
Associate Projects
Cognizant
IN
Pooja15295 Member since 2018 9 posts
Cognizant
Posted: February 27, 2019
Last activity: September 24, 2019
Posted: 27 Feb 2019 5:54 EST
Last activity: 24 Sep 2019 15:32 EDT
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>

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 Support Case Parallel
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.