Question
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***