Cannot load the same mashup again based on conditions
Learn more about the possible issues and their resolution to ensure that you can load the same mashup again based on certain conditions.
Condition
The mashup does not load when you load the same mashup again based on certain conditions.
Cause
When the postMessage handler registration on the host fails, you cannot load the same mashup again based on certain conditions. The postMessage handler registration must be successful to allow resizing and communication between the host page and gadget.
Solution
Put a debugger in the
HostActionProcessor
orGadgetActionProcessor
. If the debugger does not stop, then invokepega.Mashup.Communicator.register (pega.Mashup.hostActionsProcessor)
and_initAllPegaObjects()
when the mashup script is loaded for the first time.For subsequent new mashup <div> snippets that you add, invoke
_initAllPegaObjects()
.
Previous topic Troubleshooting issues with loading mashups Next topic Cannot load a mashup asynchronously based on an event or a flag