Question

16
Views
AnoopS58 Member since 2017 1 post
Centene Corporation
Posted: 1 week 6 days ago
Last activity: 1 week 6 days ago

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>

Pega Platform Conversational Channels Healthcare and Life Sciences Lead System Architect
Share this page LinkedIn