Question

6
Replies
525
Views
Avinash.Haridasu Member since 2014 266 posts
Morgan Stanley
Posted: July 15, 2018
Last activity: August 23, 2018
Closed

Unable to access Mashup data using Java Script

Hi,

I have deployed a simple case mashup (create new work) and have added pyID, pyLabel as a data fields in the harness header.

However, i"m unable to access the property data using the getGadgetData.

Tried the below scripts in JS console to access the mashup data:

pega.web.api.doAction("PegaGadgetA", "getGadgetData", "[gadget/PegaGadgetA/pyWorkPage.pxCreateOperator]")

pega.web.api.doAction("PegaGadgetA", "getGadgetData", "[gadget/PegaGadgetA/.pxCreateOperator]")

pega.web.api.doAction("PegaGadgetA", "getGadgetData", "[pxCreateOperator]")

pega.web.api.doAction("PegaGadgetA", "getGadgetData", "pxCreateOperator")

My Mashup code:

<!-- ********************** Begin Pega content ********************** -->
<script src ='http://192.168.56.10:9080/prweb?pyActivity=pzIncludeMashupScripts'></script&gt;
<script>
function onLoadExe(myid){
alert("loaded");
}
</script>
<div data-pega-gadgetname ='PegaGadgetA'
data-pega-action ='createNewWork'
data-pega-action-param-classname ='TGB-SAETest-Work-Candidate'
data-pega-action-param-flowname ='pyStartCase'
data-pega-action-param-model =''
data-pega-isdeferloaded ='false'
data-pega-applicationname ='SAETest'
data-pega-action-param-parameters='{"UserIdentifier":"myoperator","Password":"crVsZXM=",pzSkinName:"SAETest"}'
data-pega-threadname ='STANDARD'
data-pega-event-onload ='onLoadExe'
data-pega-systemid ='mycurrentsystem'
data-pega-resizetype ='stretch'
data-pega-url ='http://192.168.56.10:9080/prweb'
data-pega-redirectguests ='true' ></div>

<!-- ********************** End Pega content ********************** -->

Data Integration
Moderation Team has archived post
Share this page LinkedIn