Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Reference Information for Siebel Open UI > Browser Script CompatibilitySiebel Open UI supports your existing browser script. However, it is recommended that you customize a presentation model instead of using browser script. It is recommended that you gradually move any logic that you implement through your existing browser script to the presentation model. You can write a browser script in JavaScript. This script can interact with the Document Object Model (DOM) and with the Siebel Object Model that is available in the Web browser through a shadow object. You can script the behavior of Siebel events and the browser events that the DOM exposes. Siebel Open UI uses a JavaScript environment that allows you to implement browser scripting. This JavaScript API can dynamically refresh page content and instantly commit customization modifications. If your implementation currently uses browser scripting, then you can refactor JavaScript to move from your existing employee application to Siebel Open UI. Refactoring is the process of modifying the internal structure of existing code without modifying the external behavior of this code. For more information about this JavaScript API, see Siebel Open UI Application Programming Interface. Sequence That Siebel Open UI with Custom Browser ScriptThe following pseudocode describes the sequence that Siebel Open UI uses if your deployment includes custom browser script: PR calls a PM method or event For example, the following pseudocode describes the sequence that Siebel Open UI uses if the user clicks New in an applet, and if your deployment includes custom browser script that uses a method named NewRecord: PR calss PM.OnControlEvent 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 About Using This Book. How Siebel Open UI Creates Shadow Objects for ApplicationsSiebel Open UI creates an application shadow object with the following application object during application startup: Application InvokeMethod How Siebel Open UI Creates Shadow Objects for Business ObjectsSiebel 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. How Siebel Open UI Creates Shadow Objects for Applets, Business Components, or Business ServicesSiebel 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. How Siebel Open UI Creates Shadow Objects for ControlsSiebel Open UI does the following to create a shadow object for a control:
Browser Script Object TypesYou can use the following object types in browser script: Event Handlers You Can Use to Handle Predefined EventsTable 53 describes the event handlers that you can use in browser script to handle a predefined event for a Siebel object type. Event Handlers You Can Use to Handle Predefined DOM EventsTable 54 describes the event handlers that you can use in browser script to handle a predefined DOM event for a Siebel control object type. Methods You Can Use in Browser ScriptTable 55 describes the methods that you can use in a browser script for each Siebel object type that Oracle's Siebel Open UI can use. |
Configuring Siebel Open UI | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |