Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Configuring 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 Table 36 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 Applets
Table 37 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. The 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(rowId, field_name, value);
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(rowId, control.GetName(), value); Siebel Open UI can bind the physical renderer to the CellChange method to determine whether or not it modified the value for the control. The 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. The 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); The 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(rowId, control, value);
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", counter, my_accounts, value); 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. The 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(rowId, control, value); For example, the following code brings the my_accounts control into focus: this.ExecuteMethod("OnCtrlFocus", counter, my_accounts, value); 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. The OnDrillDown method drills down on a control. It returns one of the following values:
OnDrillDown(control_name, rowId);
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("OnDrillDown", my_accounts, counter); For more information about using this method, see Life Cycle Flows of User Interface Elements. The 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("OnVerticalScroll", "nxrc"); The 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++){ applets[appletIndex].SetMultiSelectMode(bInMultiSelMode); 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("SetMultiSelectMode", InMultiSelectMode, this); |
![]() ![]() |
Configuring Siebel Open UI | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |