Support Article
Work Object opens in home tab instead of new tab
SA-12493
Summary
A work object from CPMInteractionPortal opens in Home tab whereas, it should open in a new tab.
Error Messages
Not Applicable
Steps to Reproduce
1. Open CPM 7 Interaction Portal.
2. Navigate to Manager Tools.
3.Select a link which is configured to open a work order using OpenWorkByURL method.
Root Cause
The WorkArea Gadget configured in the Portal is a Tabless Dynamic Container. The Tabs which are visible in the top are not actual Tab Headers, instead it is Recent Gadget configured to be displayed horizontally. So on clicking a link, a new document is opened but a new entry in recents is not added.
This is because OpenWorkByURL Action does not support Recents.
Resolution
This issue is resolved through the following local-change:
Use pega.desktop.createNewWork function instead of openWorkByURL.
syntax: pega.desktop.createNewWork("AAAA","","BBBB")' where AAAA is class name and BBBB is flow name.
Published July 30, 2015 - 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.