Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us