Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Reference Information for Siebel Open UI > Browser Script Compatibility > How Siebel Open UI Handles Custom Client ScriptsSiebel Open UI uses browser script through a JavaScript shadow object, which is a type of object that Siebel Open UI uses for client scripting. All other client objects include a corresponding shadow object, except for the PropertySet. For example, the JSSApplet object includes the JSSAppletShadow shadow object. Siebel Open UI exposes this shadow object to scripting. When Siebel Open UI prepares to display the applet, SWE determines whether or not a browser script is defined for this applet. If this script exists, then Siebel Open UI downloads the browser script file that contains the definition of the shadow object from the Siebel Server to the client. For example, assume you write a browser script for an applet to handle the PreInvokeMethod event. At run-time, Siebel Open UI creates a JavaScript object that it derives from the JSSAppletShadow object. It runs the PreInvokeMethod event and the event handler of the shadow object before it calls the DoInvokeMethod event. Each shadow object includes a reference to the underlying object. The shadow object sends the call to this underlying object, if necessary. For more information about deriving values, see Deriving Presentation Models, Physical Renderers and Plug-in Wrappers. Siebel Open UI creates an application shadow object with the following application object during application startup: bRet = this.*FirePreInvokeMethod*(methodName, inputPS); ;return from here if the return value of the PreInvokeMethod is CancelOperation ; continue to invokemethod if the return value is ContinueOperation this.DoInvokeMethod (methodName, args); this.*FireInvokeMethod*(methodName, inputPS); Siebel Open UI uses a business object shadow object only in other shadow objects, such as an application shadow object, applet shadow object, or business component shadow object. Siebel Open UI does the following to create a shadow object for an applet, business component, or business service:
The process is the same for a business service except Siebel Open UI uses the SWE_PST_SERVICE_SHADOWS shadow. Siebel Open UI does the following to create a shadow object for a control:
|
Configuring Siebel Open UI | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |