Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

dialogClass not working on Agent Workspace UI Action

CA5
Tera Contributor

We have a UI action on Incident table which open a dialog window when button is clicked but this button is not working on Agent Workspace.

 

var sysId = typeof rowSysId == 'undefined' || rowSysId == null ?
gel('sys_uniqueValue').value : rowSysId;
var dialogClass = GlideModal ? GlideModal : GlideDialogWindow;
var dialog = new dialogClass('Open Dialog');
dialog.setTitle(getMessage('Please provide notes'));
dialog.setPreference('sysparm_sys_id', sysId);
dialog.setPreference('sysparm_ok_button_name', getMessage('Notes'));
dialog.render();

 

Please help.

1 REPLY 1

Ankur Bawiskar
Tera Patron

@CA5 

you need to use g_modal.showFrame()

check this

How to use UI Actions in Workspaces 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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