Cannot embed a mashup in a Pega application
Ensure that your mashups loads successfully when you embed a mashup in a Pega application.
Condition
The mashup does not load when you try embedding it in a Pega application.
Cause
When you try to embed a Pega web mashup inside a Pega application instead of a web page, the mashup needs to comply with the pzIncludeMashupScripts activity of the host site, without a mismatch in the code stack between different Pega Platform versions.
Solution
- Do not include the pzIncludeMashupScripts script
tag in any section of the application, because this script tag
overwrites the existing Pega JavaScript object. Include the following
custom mashup scripts to ensure that mashup loading, resizing, and
registration behaves as expected for the host web site:
<pega:onlyonce name="MashupScriptsCustom"> <pega:static type="script" app="webwb"> <pega:file name="PegaCompositeGadgetMgr.js"/> <pega:file name="pzpega_postmessage.js"/> <pega:file name="pzpega_web_mashup.js"/> <pega:file name="pzpega_web_mashup_hostActionsProcessor.js"/> </pega:static> </pega:onlyonce>
Previous topic Cannot load a mashup from a non-default access group Next topic Troubleshooting browser-specific issues with mashups