Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Applet Control ClassThis topic describes the methods that Siebel Open UI uses with the Applet Control class. It includes the following information:
Each applet control references the Applet Control class. Siebel Open UI stores this class in the appletcontrol.js file. GetCaseSensitive MethodThe GetCaseSensitive method determines whether or not a control is case sensitive. It returns one of the following values: if (control.GetCaseSensitive() === "1"){ GetDisabledBmp MethodThe GetDisabledBmp method returns the image source configured for a control if the control is disabled. It returns one of the following values depending on whether or not the image exists:
GetDisplayName MethodThe GetDisplayName method returns the display name of a control. It returns this name in a string. It uses the following syntax: if (control.GetDisplayName () === "Account Name"){ GetDispMode MethodThe GetDispMode method returns the display mode of a control. It returns this name in a string. It uses the following syntax: GetEDEnabled MethodThe GetEDEnabled method determines whether or not an Effective Dating (ED) control is enabled. It returns one of the following values: GetEnabledBmp MethodThe GetEnabledBmp method determines whether or not an image source is configured for a control, whether or not this image source exists, and whether or not this control is enabled. It returns one of the following values depending on whether or not the image exists:
GetFieldName MethodThe GetFieldName method returns a string that includes the name of the field where a control is configured. It uses the following syntax: For examples that use GetFieldName, see Customizing Methods in the Presentation Model to Store Field Values and CanNavigate Method. GetHeight MethodThe GetHeight method returns a string that includes the height of a control, in pixels. It uses the following syntax: GetIndex MethodThe GetIndex method returns the index of a control. This index identifies the control position in the applet. It uses the following syntax: GetInputName MethodThe GetInputName method returns a string that includes the HTML Name attribute of a control. It uses the following syntax: For examples that use the GetInputName method, see the following topics:
GetJustification MethodThe GetJustification method returns a string that indicates the text justification. It uses the following syntax: For an example that uses the GetJustification method, see LookupStringCache Method. GetMaxSize MethodThe GetMaxSize method returns the maximum number of characters that the user can enter into a control. It uses the following syntax: GetMethodName MethodThe GetMethodName method returns a string that includes the name of a method that is configured on a control. It uses the following syntax: For an example that uses the GetMethodName method, see CanInvokeMethod Method for Presentation Models. GetName Method for Applet ControlsThe GetName method that Siebel Open UI uses for applet controls returns the name of an applet control. It returns this name in a string. It uses the following syntax: The following example uses the GetName method: if (control.GetName() === "Account"){ For other examples that use the GetName method, see the following topics:
For information about the GetName method that Siebel Open UI uses for other classes, see GetName Method for Applets see GetName Method for Application Models. GetPMPropSet MethodThe GetPMPropSet method gets the property set for a control. It uses the following syntax: control.GetPMPropSet(consts.get To view an example that uses this method, see Customizing Control User Properties for Presentation Models. GetPopupHeight MethodThe GetPopupHeight method returns a string that includes one of the following values:
For an example that uses the GetPopupHeight method, see GetPopupType Method. GetPopupType MethodThe 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:
The following example uses the GetPopupType method to make sure sufficient space exists to display the popup: if (control.GetPoupType !== "Pick"){ GetPopupWidth MethodThe GetPopupWidth method returns a string that includes one of the following values:
For an example that uses the GetPopupWidth method, see GetPopupType Method. GetPrompt MethodThe GetPrompt method returns a string that includes the prompt text that Siebel Open UI displays with a control. It uses the following syntax: The following example includes the GetPrompt method: // Alert the user when he lands in the control GetUIType MethodThe GetUIType method returns a string that identifies the type of control. For example, multivalue group, picklist, calculator, and so on. It uses the following syntax: GetWidth MethodThe GetWidth method returns a string that includes the width of a control, in pixels. It uses the following syntax: IsBoundedPick MethodThe IsBoundedPick method returns one of the following values: IsCalc MethodThe IsCalc method returns one of the following values: IsDynamic MethodThe IsDynamic method returns one of the following values: IsEditEnabled MethodThe IsEditEnabled method returns one of the following values: IsSortable MethodThe IsSortable method returns one of the following values: NewRecord MethodThe NewRecord method initializes a new record that Siebel Open UI adds to the database that resides on the Siebel Server. It uses the following syntax: BusComp.prototype.NewRecord = function (bInsertBefore, bInternal, pIdValue) {}
For examples that use the NewRecord method, see the following topics:
NotifyNewData MethodThe NotifyNewData method sends an event notification to the client when Siebel Open UI modifies the value of a field. It returns nothing. It uses the following syntax: BusComp.prototype.NotifyNewData = function (field_name) {} You can use the NotifyNewData method to make sure Siebel Open UI synchronizes the modified field values between different applets that reside in the same client or that reside in different clients. NotifyNewData also notifies other fields that reference this field. You can configure Siebel Open UI to override the NotifyNewData method. SetIndex MethodThe SetIndex method sets the index of a control. This index identifies the control position in the applet. The SetIndex method returns nothing. It uses the following syntax: The following example uses the SetIndex method: //listOfControls that contains an object of all the controls in the applet |
Configuring Siebel Open UI | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |