Data Binding with PEGA Mashup
I am trying to create mashup interface in PEGA 8.3.1 to expose harness UI. Mashup is working fine but i am unable to pass data using setGadgetData method.
in PegaGadget div i am using data-pega-event-onload to invoke function. But value is not getting passed from host to PEGA Gadget UI.
Sample code below:
data-pega-event-onload='ABC'
<script>
function ABC()
{
pega.web.api.doAction("PegaGadget","setGadgetData","pyDisplayHarness.propertyname","value",{callback:callbackforABC});
}
function callbackforABC(rtnValue)
{
alert("Entered"+rtnValue);
}
</script>