Question

Morgan Stanley
IN
Last activity: 23 Aug 2018 7:54 EDT
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:
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:// Proprietary information hidden:9080/prweb?pyActivity=pzIncludeMashupScripts'></script>
<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:// Proprietary information hidden:9080/prweb'
data-pega-redirectguests ='true' ></div>
<!-- ********************** End Pega content ********************** -->