Gilde Dialogue window - ok button not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 03:53 AM
Hi Team,
Need help in one of the issue.
when we cancel a case and click on "ok" after entering reason for cancellation - pop up window is not vanishing. We need to click elsewhere in order for it to vanish - state is getting updated though .
Here is my UI Action.
function cancelCase() {
var sysId = typeof rowSysId == 'undefined' || rowSysId == null ?
g_form.getUniqueValue() : rowSysId;
var dialogClass = GlideModal ? GlideModal : GlideDialogWindow;
var dialog = new dialogClass('sn_hr_core_HR Comment Dialog');
var msg = new GwtMessage().getMessage('Enter the reason for canceling the case');
dialog.setTitle(msg);
dialog.setPreference('sysparm_task_sys_id', sysId);
dialog.setPreference('sysparm_task_table', 'sn_hr_core_case');
dialog.setPreference('sysparm_ok_method_name', 'cancelCase');
dialog.setPreference('sysparm_is_required', false);
dialog.setPreference('sysparm_is_comment', 'false');
dialog.render();
}
Thanks,
Karan
- Labels:
-
Case and Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 06:38 AM
Can you attach a screenshot of the entire UI Action? My OOB on San Diego looks like the below, and I do not have any issues with it - even with different browsers.
function cancelCase() {
var sysId = typeof rowSysId == 'undefined' || rowSysId == null ?
g_form.getUniqueValue() : rowSysId;
var dialogClass = GlideModal ? GlideModal : GlideDialogWindow;
var dialog = new dialogClass('sn_hr_core_HR Comment Dialog');
var msg = new GwtMessage().getMessage('Enter the reason for canceling the case');
dialog.setTitle(msg);
dialog.setPreference('sysparm_task_sys_id', sysId);
dialog.setPreference('sysparm_task_table', 'sn_hr_core_case');
dialog.setPreference('sysparm_ok_method_name', 'cancelCase');
dialog.setPreference('sysparm_is_required', false);
dialog.setPreference('sysparm_is_comment', 'false');
dialog.on('hrComentDialogSucess', function() {
dialog.destroy();
gsftSubmit(null, g_form.getFormElement(), 'sysverb_update_and_stay');
});
dialog.render();
return;
}