Not able to open link in new window from UI action server side script

Ranjita1
Kilo Contributor

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 ?

 

 

1 ACCEPTED SOLUTION

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

@Ranjita 

Glad to help.

Please mark response helpful as well.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader