Open new window in Agent Workspace

ayanc27
Kilo Expert

Hello everyone,

I want open a new window / tab by clicking on UI Action button in Agent Workspace to open an external url. From UI 16 it is working fine but in Agent Workspace it is not opening any new tab or window. I tried below but no luck:

 

1> window.open("https://www.google.com",'_blank');

2> g_navigation.openPopup("https://www.google.com");

 

 

Any help is appreciated. Thanks in advance

 

14 REPLIES 14

sekarpdkt
Kilo Contributor

This one opens a new window. Is there a way to open a new tab?

 

Thanks

Tarun2
Tera Contributor

Hi sekarpdkt ,

Did you found out to open in a new tab .

iam facing the same issue.

Thankyou ,

 

mvj1
Tera Contributor

Hello
We had same issue, and opened a HI Case and got the following response which works.

In the Workspace Client Script you need to add the code:

top.window.open('URL','blank');

and this works for us and opens it in a new tab.

Hi,

for anyone with similar problem. This method worked for us - opening new subtab on Agent Workspace. 

function onClick(g_form) {
// Current context (anonymous method executed by Agent Workspace)
	g_aw.openRecord("incident", "08fd113bdb0b4414229d5385ca961932");
}

Documentation:
https://developer.servicenow.com/dev.do#!/reference/api/orlando/client/GlideAgentWorkspaceAPI

AmolJ
Tera Expert

I just can not open a catalog item in a new tab in CSM workspace. It opens in a new tab on the browser but I want to open it as a new tab in the same are where I can currently see a list.