Accessing Proxy Objects

If you must write code that accesses a proxy object, then it is strongly recommended that you access this proxy object through a physical renderer. The physical renderer typically exposes the interfaces that allow access to operations that Siebel Open UI performs on the proxy object. The example in this topic accesses a proxy object for an active control.

To access proxy objects

  1. Use a JavaScript editor to open your custom physical renderer.

  2. Add the following code:

    this.ExecuteMethod("SetActiveControl", control);
    

    This example code accesses a proxy object so that Siebel Open UI can modify an active control.

It is recommended that you do not write code that directly accesses a proxy object from a physical renderer. In the following example, Siebel Open UI might remove the GetProxy method from the presentation model, and any code that references GetProxy might fail. It is recommended that you do not use the following code:

this.GetProxy().SetActiveControl(control);