Currently it is possible to configure a link component to open a case in a new browser window using the openWorkItem or openWorkByHandle action - the preview button is displayed on this link and generate an href that can be used to open the case using the right click mouse action
Unfortunately, this functionality is not available for open assignment and this requires the user to open the case in review mode first and then open the assignment.
You can find more details on this functionality in the articles:
The goal of this document is to offer the ability to show an 'open in new tab' button in the worklist that will open directly the assignment in a new browser tab - the component would be a regular button that would use a customized JS api to open the assignment
Note: this demo was done on 8.7 with Theme-Cosmos 4.0 - this functionality might not be possible with older versions of Theme-Cosmos.
To achieve this functionality, we will need to replace a function called loadNewTabWO already shipped as part of the Theme-Cosmos ruleset and extend it to support the openAssignment functionality - this function is defined in pz-cosmos-ui-utils.js
1/ Extend the loadNewTabWO functionality
Create a custom non-auto section in your application with the name UserHeaderOverrideInc and add the following code to the non-auto section
this code defines a new function called openAssignmentInNewTab and redefines the function loadNewTabWO by adding a new if condition for newTabactionName = 'openAssignment'
Note: upgrading to a new version of Theme-Cosmos will require to up merge the changes / fixes done in the OOB back into this function.
2/ Add this section to the UserHeader section
Resave the UserHeader to your app ruleset and add this custom section to the region - Because it is added to the UserHeader, the override function loadNewTabWO will take precedence with the one shipped OOB in Theme-Cosmos
3/ Configure the button to call the function openAssignmentInNewTab
for this example, we will add it to the section HomeWorklistorQueueItem
@RichardMarsot , after I opened the new Assignment in a new Browser tab, and decided to close the browser tab by pressing the "x" button on the browser, what happens with the Pega Thread behind that tab? When will it be removed from the requestor?
Posted: 7 months ago
Posted: 14 Feb 2023 9:31 EST
Richard Marsot (RichardMarsot)
Senior Director, Front End Engineering