Can't seem to resize my popup dialog window

solymyr
Kilo Expert

Hi,

I am trying to achief a popup dialog window. I am almost were I want to be with my development. Except on the size of my popup.

Initially the size and the way my popup is being displayed is fine.

It is when I "unlock" my reference field that it isn't any more.

Popup before I click the lock:

Before.PNG

Popup after I click the lock:

After.PNG

As you can notice I don't have a nice screen anymore.

I have no idea how to fix this so that I have good with and height.

Or maybe an auto resize when I click the lock.

1 ACCEPTED SOLUTION

Hi,



Just in case you all wondered how this ended...


I have found a solution without a ui page.


I continued working on the UI Action but instead of using using "GlideDialogWindow" , I have used "GlidePaneForm".


I use the method to call a view and displays it in a larger window then a popup.


The result is a good lay-out


Capture.PNG




Thank you for you help Daryll and Ashish


View solution in original post

12 REPLIES 12

It can be complex it just depend on the content you'd like in it.


Here's a basic example



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<div style='width:128px;' align="center">


<center>


<img src="http://preloaders.net/preloaders/464/Smile-128.gif" id="image" height="128px" width="128px" align="center"/>


</center>


</div>


</j:jelly>



but you can find more help in these links:


http://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/


http://www.servicenowguru.com/system-ui/glidedialogwindow_popup_record_list/comment-page-1/


http://wiki.servicenow.com/index.php?title=UI_Pages#gsc.tab=0


This one is great for how to use standard field types in a ui page and explains about the 2 tier loading that happens with jelly


http://snaug.com/?page_id=39


Hi,



Just in case you all wondered how this ended...


I have found a solution without a ui page.


I continued working on the UI Action but instead of using using "GlideDialogWindow" , I have used "GlidePaneForm".


I use the method to call a view and displays it in a larger window then a popup.


The result is a good lay-out


Capture.PNG




Thank you for you help Daryll and Ashish


Ashish Kumar Ag
Kilo Guru

Add the below after the title of GlideWindow.


object.setSize(height,width); //Set the dialog size