dialogClass not working on Agent Workspace UI Action
This content was last updated in 2023. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 04:00 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 08:41 PM
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.