Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-11/812ce7e9-29f5-45f2-b772-ab123a887292.jpg?h=c39de177&itok=32FChvJB)
Senacor Techologies Aktiengesellschaft
DE
Last activity: 4 Jul 2022 8:12 EDT
Open Assignment in new browser tab
Hello all,
we got the business requirement to open an assignment in a new browser tab.
I found a properly working implementation to open a case in a new browser tab on click, but the implementation seems to not work for assignments. I used the following implementation (https://collaborate.pega.com/question/open-case-new-browser-tab):
- Link with action set. Action: Runscript
function openlinkinNewTab(event) {
var elem = event.target;
var hrefval = elem.getAttribute("href");
if( elem.tagName === "A" && typeof hrefval === 'string' && hrefval !== "#" && hrefval.length > 0) {
window.open(hrefval);
pega.control.actionSequencer.clearQueue();
event.preventDefault();
}
}
//static-content-hash-trigger-GCC
- OpenWorkByHandle with skeleton (pyOpenWorkSkeleton)
Tried the same with replacing the OpenWorkByHandle with OpenAssigment and also combinations of both. But it always just opens the assignment in the same browser tab.
Did anyone have the same requirement/problem?
Thanks, for your help.
Cheers Febian
Below pictures of the implementation are attached.
***Edited by Moderator Marije to add Capability tags***