Configuring Siebel Open UI > Customizing Siebel Open UI > Doing General Customization Tasks >

Configuring Siebel Open UI to Bind Methods


This topic includes some examples that describe how to bind methods. For other examples that bind methods, see the following topics:

Binding Methods That Reside in the Physical Renderer

You can use the AttachPMBinding method to bind a method that resides in a physical renderer and that Siebel Open UI must call when the presentation model finishes processing.

To bind methods that reside in the physical renderer

  1. Add the method reference in the physical renderer.
  2. Configure Siebel Open UI to send the scope in the binderConfig argument of the AttachPMBinding method as a scope property.

    For more information, see AttachPMBinding Method.

Conditionally Binding Methods

The example in this topic conditionally binds a method.

To conditionally bind methods

  • Add the following code:

    this.AttachPMBinding("DoSomething",function(){SiebelJS.Log("After DoSomething");},{when: function(function_name){return false;}});

    where:

    • function_name identifies the name of a function.

{In this example, if Siebel Open UI calls DoSomething, then the presentation model calls the function_name that the when condition specifies, and then tests the return value. If function_name returns a value of:

  • true. Siebel Open UI calls the AttachPMBinding method.
  • false. Siebel Open UI does not call the AttachPMBinding method.

If you do not include the when condition, then Siebel Open UI runs the DoSomething method, and then calls the AttachPMBinding method. For more information, see AttachPMBinding Method.

Configuring Siebel Open UI Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.