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

WorkItem opens in the same tab instead of new tab

SA-12717

Summary



After upgrade from PRPC 6.3 SP1 to Pega 7.1.8, when a work object is opened in a new tab using Internet Application Composer (IAC), it is opens in the existing tab instead.


Error Messages



Not Applicable.


Steps to Reproduce



1. Use a IAC Gadget with PegaA parameter of display and a PegaA_harness parameter value that is an end user portal harness.

Example:

<div id="PegaContent" style="overflow:auto;"
     PegaGadget="showCompPortal"
     PegaResize="stretch"
     PegaA="display"
     PegaA_harnessName="User"
     PegaA_pzPrimaryPage="pyPortal"
     PegaDefer="false">
</div>


2. Open the portal thorugh IAC.
3. Click on the Listview to open a workitem.

Root Cause



When displaying a full end user portal with IAC the portal has to be initialized properly via Data-Portal.ShowDesktop. The proper way to accomplish this step is to use a gadget that calls Data-Portal.ShowDesktop.

<div id="PegaContent" style="overflow:auto"
    PegaGadget="showCompPortal"
    PegaResize="stretch"
    PegaA="OpenWorkByURL"
    PegaA_query="pyActivity=Data-Portal.ShowDesktop"
    PegaDefer="false"
</div>


This will initialize and load the users default portal. 

if the portal is dynamic this can be accomplished by calling a custom activity that sets pxThread.pxPortal and then calling Data-Portal.ShowDesktop:

<div id="PegaContent" style="overflow:auto"
    PegaGadget="showCompPortal"
    PegaResize="stretch"
    PegaA="OpenWorkByURL"
    PegaA_query="pyActivity=Data-Portal.ShowDynamicPortal"
    PegaDefer="false"
</div>



Resolution



The IAC gadget has been changed to call Data-Portal.ShowDesktop to properly initialize and display and end user portal.

Published July 31, 2015 - Updated October 8, 2020

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