Open record in new tab in data definition widget

Amanjyot Oberoi
Tera Contributor

Hi Team,

 

We have one data definition widget. We want to open the record in the new tab once the record is clicket. At this moment it is opening in the same page.

We found the following in the client script

:

var s = {id: p, table: parms.table, sys_id: parms.sys_id, view: 'sp'};
var newURL = $location.search(s,"_blank");
spAriaFocusManager.navigateToLink(newURL.url());

1 REPLY 1

Rocky5
Kilo Sage

Hi Aman,

 

Use the code below, It should work. But, Something should be still updated. Using below code the records will open in new tab (which we need) and it also opens on the current tab(which should be fixed still). Please let me know if you find solution for that.

var newURL = $location.search(s);
window.open(newURL.url(),"_blank");

 

Mark this as correct, If you find this helpful.

 

Thanks,

Rocky