Question

1
Replies
128
Views
Close popover
Vipin Keshri (VipinK17)
Accenture LLP
Lead System Architect
Accenture LLP
US
VipinK17 Member since 2013 17 posts
Accenture LLP
Posted: December 14, 2020
Last activity: January 4, 2021

How to use onload event in pega mashup

Hi team,

I have a very simple requirement to call a function when mashup load is complete. I tried below but it doesnt owrk. Is there an error or there any other approach to achieve that? Below is the sample code we using

It loads the mashup but dont see function being invoked.

<script>

function gadgetLoadCallback() {     console.log("call back fn was called");

}

</script>

<div id='TestMe' style="overflow:auto;height:75%;width:75%;align:right" data-pega-gadgetname ='PegaGadget'  data-pega-action ='openWorkByURL'  data-pega-action-param-query="pyActivity=CPM-Portal.ShowMatPortal"  data-pega-event-onload = "gadgetLoadCallback" data-pega-applicationname ='AppName'   data-pega-action-param-model =''  data-pega-isdeferloaded ='false'  data-pega-threadname ='STANDARD'  data-pega-systemid ='AB_Dev' data-pega-resizetype ='stretch'  data-pega-action-param-parameters="{UserIdentifier:'tempcsr1',Password:'iqiuweq12e='}" data-pega-event-onclose="testClose" data-pega-redirectguests="true" data-pega-url ='http://....../prweb/PRServlet'> </div>  

 

 

Pega Platform 7.2.2 User Experience Technology Services Lead System Architect Senior System Architect System Architect