Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Presentation Model Class for List AppletsThis topic describes the methods that Siebel Open UI uses with the presentation models that it uses to display list applets. It includes the following information:
The presentation model that Siebel Open UI uses for list applets uses the ListPresentationModel class, which is a subclass of the class that Siebel Open UI uses with the presentation models that display applets. Siebel Open UI defines this presentation model in the listpmodel.js file. For more information about the class that Siebel Open UI uses with the presentation models that display applets, see Presentation Model Class for Applets. Properties of the Presentation Model That Siebel Open UI Uses for List AppletsTable 28 lists the properties of the presentation model that Siebel Open UI uses for a list applet. Summary of Methods That You Can Use with the Presentation Model That Siebel Open UI Uses for List AppletsTable 29 summarizes the methods that you can use with the presentation model that Siebel Open UI uses for a list applet. You cannot configure Siebel Open UI to customize or override any of these methods. CellChange MethodThe CellChange method determines whether or not Siebel Open UI modified the value of a control. If Siebel Open UI modified this value, then it returns the new value. It uses the following syntax: CellChange
For example, the following code from the listapplet.js file determines whether or not Siebel Open UI modified the value of a control. The GetName method identifies this control. The this.CellChange Siebel Open UI can bind the physical renderer to the CellChange method to determine whether or not it modified the value for the control. HandleRowSelect MethodThe HandleRowSelect method chooses a row. It returns one of the following values:
HandleRowSelect(rowId, control_key, shift_key);
For an example that uses HandleRowSelect, see Customizing the Presentation Model to Delete Records. For more information about using this method, see Life Cycle Flows of User Interface Elements. OnClickSort MethodThe OnClickSort method sorts a column. It uses the following syntax:
For example, the following code sorts the my_accounts control in descending order: bReturn = this.GetProxy().OnClickSort(my_accounts, desc); For another example, the following code sorts the my_accounts control in ascending order: this.ExecuteMethod This method is asynchronous, so you cannot configure Siebel Open UI to bind it. For more information, see About Synchronous and Asynchronous Requests. For more information about using this method, see Life Cycle Flows of User Interface Elements. OnCtrlBlur MethodThe OnCtrlBlur method blurs a control, where blur is a state that makes the control not the active control. It returns nothing. It uses the following syntax: OnCtrlBlur
For example, the following code blurs the my_accounts control. This control resides in the row that the counter variable identifies. For example, if the counter variable contains a value of 3, then OnCtrlBlur blurs the my_accounts control that resides in row 3. The this.ExecuteMethod OnCtrlBlur does the localization and notifies the binder method that Siebel Open UI attaches through the CellChange method, when required. If Siebel Open UI configures the control to do ImmediatePostChanges, then OnCtrlBlur also runs these modifications. You must make sure Siebel Open UI uses the OnCtrlFocus method to make the control active before you use the OnCtrlBlur method. If the control is not active, then Siebel Open UI rejects any OnCtrlBlur call. For more information, see OnCtrlFocus Method. For more information about using this method, see Life Cycle Flows of User Interface Elements. OnCtrlFocus MethodThe OnCtrlFocus method brings a control into focus, where focus is a state that makes the control the active control. It uses the following syntax: OnCtrlFocus For example, the following code brings the my_accounts control into focus: this.ExecuteMethod For more information about these arguments and this example, see OnCtrlBlur Method. You must make sure no other control is active. If another control is already active, and if you configure Siebel Open UI to run OnCtrlFocus, then Siebel Open UI rejects the OnCtrlFocus call. For more information about using this method, see Life Cycle Flows of User Interface Elements. OnDrillDown MethodThe OnDrillDown method drills down on a control. It returns one of the following values:
OnDrillDown
For example, the following code drills down on the my_accounts control. The counter identifies the row that contains this control. For more information about how another example uses this counter, see OnCtrlBlur Method: this.ExecuteMethod For more information about using this method, see Life Cycle Flows of User Interface Elements. OnVerticalScroll MethodThe OnVerticalScroll method scrolls a set of records. It returns nothing. It uses the following syntax: OnVerticalScroll(scroll_action); For example, the following code configures Siebel Open UI to scroll to the next record. You add this code to the physical renderer: this.ExecuteMethod This method is asynchronous, so you cannot configure Siebel Open UI to bind it. For more information, see About Synchronous and Asynchronous Requests. For more information about using this method, see Life Cycle Flows of User Interface Elements. SetMultiSelectMode MethodThe SetMultiSelectMode method determines whether or not a list applet is using multiselect mode. It uses the following syntax: SetMultiSelectMode(bInMultiSelMode)
For example, the following code determines whether or not the list applet that the appletIndex identifies is using multiselect mode. This code resides in the notifyobject.js file: for(var appletIndex=0, len = applets.length; appletIndex < len; appletIndex++){ The physical renderer can use the AttachPMBinding method in the presentation model to bind to the SetMultiSelectMode method. The following binding allows the physical renderer to know if the list applet is in multiselect mode: this.AttachPMBinding |
Configuring Siebel Open UI | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |