| Bookshelf Home | Contents | Index | PDF | ![]() |
|
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Classes and Methods of the Siebel Open UI Application Programming Interface > Presentation Model Methods for List AppletsThis topic describes the presentation model that Siebel Open UI uses for list applets. It includes the following topics:
The presentation model that Siebel Open UI uses for list applets uses the ListPresentationModel class, which is a subclass of the Base Applet PresentationModel class that the presentation model for predefined applets use. For more information, see Presentation Model Methods for Applets. It stores this presentation model in the listpmodel.js file. Properties of the Presentation Model That Siebel Open UI Uses for ListsTable 17 lists the properties of the presentation model that Siebel Open UI uses for a list. Summary of Methods That You Can Use With the Presentation Model That Siebel Open UI Uses for ListsTable 18 summarizes the methods that you can use with the presentation model that Siebel Open UI uses for a list. You cannot customize or override any of these methods. HandleRowSelect MethodThe HandleRowSelect method chooses a row . It returns one of the following values:
HandleRowSelect(rowId, ctrlKey, shiftKey);
ExampleFor example, the following code from the listapplet.js file: this.HandleRowSelect(0, false, false); In another example, assume the rowId is 0, ctrlKey is false, and shiftKey is false. The following code requests the proxy to choose the first row in the record set: this.ExecuteMethod( "HandleRowSelect", 0-10, ctrlKey, shiftKey ); OnVerticalScroll MethodThe OnVerticalScroll method scrolls a record set. It returns nothing. OnVerticalScroll(scrollAction);
For example, the following code instructs Siebel Open UI to scroll to the next record: bReturn = this.GetProxy().OnVerticalScroll(scrollAction); You add the following code to the physical renderer: this.ExecuteMethod( "OnVerticalScroll", "nxrc" ); This method is asynchronous, so binding is not helpful.For more information, see About Synchronous and Asynchronous Requests. SetMultiSelectMode MethodThe SetMultiSelectMode method determines if a list applet is moving into or out of multiselection mode. It uses the following syntax: SetMultiSelectMode(bInMultiSelMode) ExampleFor example, the following code from 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. This binding allows the physical renderer to know when the list is moving in or out of multiselection mode: this.AttachPMBinding( "SetMultiSelectMode", InMultiSelectMode, this ); OnClickSort MethodThe OnClickSort method sorts a column. It uses the following syntax:
This method is asynchronous, so binding is not helpful. For more information, see About Synchronous and Asynchronous Requests. ExampleFor example, the following code from the listrenderer.js file: bReturn = this.GetProxy().OnClickSort(name, direction); For another example, the following code sorts the my_accounts control in ascending order: this.ExecuteMethod( "OnClickSort", my_accounts, asc ); OnCtrlBlur MethodThe OnCtrlBlur method blurs a control, where blur makes the control not the active control. It returns nothing. It uses the following syntax: OnCtrlBlur( rowId, control, value );
OnCtrlBlur does the localization and notifies the binder method that Siebel Open UI attaches through the CellChange method, when required. If the control is configured to do ImmediatePostChanges, then OnCtrlBlur also runs these changes. 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 silently rejects any OnCtrlBlur call. this.ExecuteMethod( "OnCtrlBlur", rowId, control, value ); OnCtrlFocus MethodThe OnCtrlFocus method makes a control active. It uses the following syntax: OnCtrlFocus( rowId, control, value );
You must make sure no other control is active. If another control is already active, and if you run OnCtrlFocus, then Siebel Open UI silently rejects the OnCtrlFocus call. this.ExecuteMethod( "OnCtrlFocus", rowId, control, value ); OnDrillDown MethodThe OnDrillDown method drills down on a control. It returns one of the following values:
OnDrillDown( ctrlName, rowId );
this.ExecuteMethod( "OnDrillDown", ctrlName, rowId ); CellChange MethodThe CellChange method determines if the value in a control changed. If the value changed, then it returns the new value. It uses the following syntax: CellChange( rowId, fieldName, value );
For example, the following code from the listapplet.js file: this.CellChange( rowId, control.GetName(), value ); The physical renderer can bind to the CellChange method to detect if the value for the control changed. |
![]() |
![]() |
| Configuring Siebel Open UI | Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |