Close GlideDialogWindow Popup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 05:58 AM
Hello,
I'm working on a form, and I have a onChange script that opens a GlideDialogWindow which has two buttons, Cancel and Print. The Cancel button executes GlideDialogWindow.get.destroy() and the Print button runs a javascript function to print the form. The form prints correctly and everything, but once the print dialog window closes, the GlideDialogWindow is still there and it won't return to the form.
Here's a screenshot of the UI Page that gets called via GlideDialogWindow function from the onChange script. The print_form is the id of the div containing the verbiage that is to be printed.
In the Javascript console, I get the following
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 06:10 AM
try below in after window.print()
it might work
- var urlOnStack = GlideSession.get().getStack().bottom();
- response.sendRedirect(urlOnStack);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2017 11:03 PM
i think, after print it is not recognizing any servicenow API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 05:45 AM
Girish,
That's what it seems like to me as well, but I don't understand why. I've verified this behaviour in Chrome/IE/Firefox.