GetPopupType Method

The GetPopupType method identifies the type of popup object that Siebel Open UI associates with a control. It returns a string that includes one of the following values:

  • Pick. Identifies a bounded pick list.

  • Mvg. Identifies a multivalue group.

  • Nothing if Siebel Open UI does not associate a popup dialog box with the control.

It uses the following syntax:

GetPopupType() 

It includes no arguments.

The following example uses the GetPopupType method to make sure sufficient space exists to display the popup:

if (control.GetPoupType !== "Pick"){    
// There's a Pick defined on this control.     
var pHeight = control.GetPopupHeight();    
var pWidth= control.GetPopupWidth();    
if (pHeight > "60" || pWidth > "200"){    
// The pop does not fit in the mobile screen, so we will disable this popup.)    
var htmlName = control.GetInputName(); 
// Set the control into readonly mode.    
$("[name=" + htmlName + "]").attr('readonly', true);    
}    
}