Agent Workspace - How to open a UI action in a sub tab instead of new window

Vaishnavi38
Tera Contributor

Hi,

I have an issue as when I click on a particular UI action in Agent workspace, its triggering to new window. 

My requirement is to when its clicked, it should open in new sub tab.

In UI Action, Under Workspace client Script, I tried the below code but didn't work.

 

function onClick(g_form)

{

var url= "incident_list.do?sysparm_query= " + g_form.getValue("called_id");

OpenUrl(url);

}

function OpenUrl(url){

this.open(url , '_blank');

}

Thanks in advance.

 

5 REPLIES 5

RISHI RAJ
Tera Contributor

@Sam Ogden & @Maik Skoddow Thanks for your responses.

How we can do the same thing using ATF(Automated Test Framework) Test Steps in San Deigo Version, When I'm doing the execution, after opening 10 tabs It gives error msg "max tab error". The max tab error is resolved from sys_properties and  modifying value for this this sn_agent_workspace.max_tabs               

Is there any UI method through which we can open it in in the sub tab bar highligheted in blue instead of tab highlighted in black. Kindly take glance in attachment for reference