UI Action to open newly created record in new tab

gtk
Mega Sage

Hi Team,

on an incident form we have a UI action  - create problem, when create a problem is used a problem will be created with an incident as a reference to it

 now we want to open the newly created problem in the next tab of the browser (one tab with the incident and another tab with problem refer to the incident)

 

any help appreciated

 

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

 

You have to use client side script in UI Action to open the record in new tab. 

Create one Client callable script include and add your script there and then use glide ajax to call the client side script include. 

then you will use below line.

g_navigation.open("problem.do?sys_id="+answer, "_blank");
 

View solution in original post

2 REPLIES 2

Harsh Vardhan
Giga Patron

 

You have to use client side script in UI Action to open the record in new tab. 

Create one Client callable script include and add your script there and then use glide ajax to call the client side script include. 

then you will use below line.

g_navigation.open("problem.do?sys_id="+answer, "_blank");
 

Ankur Bawiskar
Tera Patron
Tera Patron

@gtk 

if you are using server side script then it is not possible to open in new tab

If you are using client side script then script shared by Harshvardhan should work

Regards
Ankur

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