Open a Parent Case from a Report in new tab
Hello.
The initial requirement is: allowing user, with the Report Editor, to create reports including the reference to the potential case parent, with thi field being clickable in order to open the said parent case.
The overall solution is to create a custom non auto-generated Control performing this parent case opening and let users make use of this Control on the pxCoverInsKey standard Property.
Here is the code currently used in this custom Control:
<% String workHandle = tools.getActiveValue();
String workId = pega_rules_string.whatComesAfterLast(workHandle,' ');
%>
<a onclick='openWorkByHandle("<%=workHandle%>");'><%=workId%></a>
The problem: the case is opened in the current tab, replacing the report.
The question: how to make the parent case open IN A NEW TAB when clicking on the field in the report?