Support Article
WorkItem opens in the same tab instead of new tab
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.