- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2021 03:19 AM
Hi,
I have created new UI action and i want to open the link in new window.
action.setRedirectURL(url,'_blank'); or gs.setRedirect('/xyz.do?sys_id=' +current.sys_id,'_blank'); are not working.
I want to achieve this with server side script without using client side.
Could anybody please help me ?
Solved! Go to Solution.
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2021 03:51 AM
Hi,
Since you are talking about UI action
UI Action can only pass control from client to server
Not possible to pass control from server to client
So you better use glideajax based approach and then use g_navigation to open in new tab
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2021 04:10 AM
Glad to help.
Please mark response helpful as well.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader