
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:02 AM
How do I add make this also work in a UI Action in Agent Workspace? I want to render this UI page pop-window in workspace as well.
function openAttachmentModal() {
var sys_id = g_form.getUniqueValue();
var modal = new GlideModal('sn_hr_core_some_ui_page');
modal.setPreference('sysparm_sys_id', sys_id);
modal.setTitle('some title');
modal.render();
}
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:12 AM
Figured it out
function onClick(g_form) {
var sys_id = g_form.getUniqueValue();
g_modal.showFrame({title: 'some title', url: 'sn_hr_core_some_ui_page?sysparm_sys_id=' + sys_id + '&sysparm_type=interaction', size:'lg'});
}
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:12 AM
Figured it out
function onClick(g_form) {
var sys_id = g_form.getUniqueValue();
g_modal.showFrame({title: 'some title', url: 'sn_hr_core_some_ui_page?sysparm_sys_id=' + sys_id + '&sysparm_type=interaction', size:'lg'});
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 11:04 AM
By chance, did you get a way to close this opened window?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 01:20 AM
How should I receive this parameter in UI page?
eg:sysparm_sys_id