Support Article
Pega to Pega Mashup Close button does not work
SA-89123
Summary
Pega to Pega Mashup Close button does not work. A blank screen displays.
Error Messages
Not Applicable
Steps to Reproduce
- Generate a Mashup code
- Create a new menu item on the left menu section
- Add the harness action
- Add the Mashup code to the harness
- Add the Close button with the Cancel action to the Mashup header section
- Save the changes
- Launch the Case Worker portal
- Click the menu item
Root Cause
Mashup is intended for users who load or embed Pega content on the external websites. Loading Pega content on Pega using Mashup as configured by the user is not a supported use case.
Resolution
Perform the following local-change:
- Add the Run Script action to the Close button
- Configure the removeMashup function with the Close button action
- Add the below function to the UserWorkForm:
<script>
function removeMashup() {
$(document).ready(function() {
if (window.top.document.getElementsByClassName("menu-format-primary-navigation")[3] && window.top.document.getElementsByClassName("menu-format-primary-navigation")[3].getElementsByClassName("menu-item")[2]) {
window.top.document.getElementsByClassName("menu-format-primary-navigation")[3].getElementsByClassName("menu-item")[2].getElementsByTagName("a")[0].click();
}
})
}
Published October 11, 2019 - 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.