GlideDialogWindow : Help to open in a new window

gautamchawak
Kilo Explorer

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.

6 REPLIES 6

Mark Stanger
Giga Sage

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/


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?


No way to do that with a GlideDialogWindow. The whole point of it is to have it display in the same window.


gautamchawak
Kilo Explorer

Ok, I solved my problem using : showModalDialog