The Zurich release has arrived! Interested in new features and functionalities? Click here for more

opening a record in a new tab in workspace from ux list action client script

Michael Culhan1
Kilo Sage

How can I open a record in a new tab from a ux list action (sys_declarative_action_assignment) client script?  I tried g_aw.openRecord but I get undefined in the browser console.  g_list works but not g_aw.

 

I can use top.window.location top open the record but this refreshes the whole page.

 

More details:

I have a ux list action (sys_declarative_action_assignment) that uses the g_list.getChecked() api to get the interactions selected from a list, sends them to a script include via GlideAjax, the script  include creates a new targeted communications record with the recipients that are selected and then returns the sys_id of the new record to the client.  I want to open this record in a new tab in workspace. 

2 REPLIES 2

Michael Culhan1
Kilo Sage

This is a defect according to support and will be remedied in a future release.  In the meantime, I've been using the below which opens the record in a new browser tab

 

var win = top.window.open('now/cwf/agent/record/[tablename]/[sysid]);
win.focus();

  

Kshitij3
Tera Contributor

Hello  Michael Culhan1;

 

I have similar requirement can you help me with how you are returning the sys_id of record created through glide ajax. I am not able to get response from Glide AJAX called from declarative action.