Support Article
Data binding using a function reference on page does not work
SA-64940
Summary
In Pega 7.4 Mashup, data binding using a function reference on the page does not work. The function defined in data-pega-event-onpagedata attribute is not called and the value 'true' is always returned.
Error Messages
Not Applicable.
Steps to Reproduce
Use the following simple data binding example:
<script>
function dataFromPage(key){
if (key=="dataBindTest"){
return "working";
}
}
</script>
Use the below Mashup attributes to test with:
- data-pega-action-param-parameters="{testDataBind:'[page/function/dataBindTest]'}"
- data-pega-event-onpagedata="dataFromPage"
At runtime, the testDataBind parameter always has a value of 'true'.
Root Cause
There was a code issue in PegaCompositeGadgetMgr.js in the _executeFunction method.
Resolution
Apply HFix-47036.
Published October 13, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.