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

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

  1. Generate a Mashup code
  2. Create a new menu item on the left menu section
  3. Add the harness action
  4. Add the Mashup code to the harness
  5. Add the Close button with the Cancel action to the Mashup header section
  6. Save the changes
  7. Launch the Case Worker portal
  8. 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:
  1. Add the Run Script action to the Close button
  2. Configure the removeMashup function with the Close button action
  3. 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

Was this useful?

0% 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