GlideDialogWindow : Help to open in a new window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2012 10:50 AM
I have written a code to open a UI page using GlideDialogWindow. The page is opening in the same frame but I want it to open in a different window (like the results given by popupOpenStandard(url)) with scrollbars. Here is the code that I have written:
//Initialize and open the Dialog Window
var dialog = new GlideDialogWindow("service_rerouting"); //Render the dialog containing the UI Page 'task_comments_dialog'
dialog.setTitle("Rerouting Options"); //Set the dialog title
dialog.setPreference("u_cmdb_ci", u_cmdb_ci);
//dialog.setPreference('sysparm_view', 'default');
//dialog.setPreference('sysparm_view', 'new');
dialog.setSize(1000,1000); //Set the dialog size
dialog.render(); //Open the dialog
Is there a way, I can change the target for opening the window.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2012 12:46 PM
This guru post has an example of how to do this. Basically you need to construct your URL and then open it in a new window. You don't use GlideDialog at all.
http://www.servicenowguru.com/system-ui/glidedialogwindow_popup_record_list/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2012 01:37 PM
I have to update the parent form from the popup. Also I have to disable the parent form when the pop up window opens. Both these functionalities can be easily achieved using GlideDialogWindow. So the only issue is to open the GlideDialogWindow in a separate window. Does'nt it give such a functionality?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2012 03:01 PM
No way to do that with a GlideDialogWindow. The whole point of it is to have it display in the same window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2012 04:23 PM
Ok, I solved my problem using : showModalDialog