Support Article
IAC Gadget to Gadget communication does not work
SA-12707
Summary
IAC Gadget to Gadget communication does not occur when using Gadget Action Objects or Gadget Event Attributes.
The application needs to display multiple gadgets and each gadget should be able to communicate with each other.
On using Gadget Action Objects and Gadget Event Attributes (such as PegaE_ onLoad and PegaE_onConfirm), the communication between gadgets was unsuccesful.
The gadget are displayed within PRPC Portals for testing. PegaInternetApplicationComposer.js is included.
Error Messages
Not Applicable
Steps to Reproduce
There is no specific use case to reproduce this issue.
Root Cause
The PegaInternetApplicationComposer.js file should not be used when testing gadgets within PRPC portals. The PegaInternetApplicationComposer.js is a static content bundle containing the following Rule-File-Text Javascript files:
pega_yui_utilities
pega_yui_extensions
pega_tools_hashtable
SafeURL
PegaCompositeGadgetMgr
pega_ui_property
When imbedding gadgets into PRPC portals for testing, you only need to include the PegaCompositeGadgetMgr, the rest are already there.
<pega:static type="script" app="webwb" >
<pega:file name="PegaCompositeGadgetMgr.js" />
</pega:static>
Resolution
Changed gadget code to only include PegaCompositeGadgetMgr.js. This resolved the issue with gadgets events and gadget action objects.
Published August 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.