Question

1
Replies
64
Views
Close popover
Anoop Sadasivan (AnoopS58)
Centene Corporation

Centene Corporation
US
AnoopS58 Member since 2017 1 post
Centene Corporation
Posted: November 20, 2020
Last activity: January 22, 2021

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>

***Edited by Moderator: Pooja Gadige to update platform capability tag***
Pega Platform User Experience Healthcare and Life Sciences Lead System Architect