How to increase height of a GlideDialogWindow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 03:53 AM
Hello All,
I have created a UI Action to preview the current record.However, i am not being able to increase height of the pop up window. I have used dd.setHeight(); and passed value into it but i could not see any change in the height. Also, i used dd.setSize(width_size,height_size) but no change. Any help in this is highly appreciable.Thanks in advance.
UI Action:
function showRCA(){
if (typeof rowSysId == 'undefined')
sysId = gel('sys_uniqueValue').value;
else
sysId = rowSysId;
var currentRecord = g_form.getUniqueValue();
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var dd = new dialogClass("notification_display");
dd.setTitle("Notification Preview");
dd.setWidth(800);
dd.setPreference('sysparm_notification_id', '962c20c3dbc05300f5759e04db961918');
dd.setPreference('sysparm_target_id', currentRecord);
dd.render();
}
UI Page:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:inline template="notification_display.xml" />
</j:jelly>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 03:56 AM
try with setSize()
setSize(Number width, Number height)
Sets the size of the dialog window.
If you do not pass width and height parameters, a default size is used.
Name | Type | Description |
---|---|---|
width | Number | The width of the dialog window. |
height | Number | The height of the dialog window. |
Type | Description |
---|---|
void | Method does not return a value |
Example
var gdw = new GlideDialogWindow('show_list');
gdw.setSize(750,300);
You can refer the API details on below link.
https://developer.servicenow.com/app.do#!/api_doc?v=london&id=r_GDW-setSize_N_N