Example of Adding a New Method

The following code adds a new ShowSelection method:

this.AddMethod("ShowSelection", SelectionChange,{sequence : false, scope : this}); 

After Siebel Open UI adds the ShowSelection method, you can use the following code to configure Siebel Open UI to call this method. It sends a string value of SetActiveControl to the sequence and a string value of null to the scope argument. To view how Siebel Open UI uses this example, see Step 5 in the topic Customizing the Presentation Model to Identify the Records to Delete:

this.ExecuteMethod("SetActiveControl", null)