Open record in new tab in data definition widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 08:06 AM
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());
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2019 02:50 PM
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