Bookshelf Home | Contents | Index | PDF |
Siebel CTI Administration Guide > Configuring Advanced Communications Features > Integrating with Siebel Scripting Languages > Integrating Scripting Using Server and Browser ScriptsSiebel eScript scripts are generally supported only for the Object Manager layer, not for the browser layer. For Siebel Web Client, the Object Manager is on the Siebel Server (Application Object Manager, such as SCCObjMgr_enu for Siebel Call Center in an ENU environment). However, Siebel eScript scripts defined on the browser layer can use both server scripts and the @InvokeSWECommand special command. See the example in this topic for creating a communications command, a command for the Siebel Web Engine (SWE), and related server and browser scripts. NOTE: Transferring data from a server script to a browser script is not supported, due to limitations of SWE commands. For more information about the @InvokeSWECommand special command, see Special Commands for Device Commands. Command ExampleTable 41 and Table 42 show an example command and associated command data definition that invokes the AlertTest SWE command. Table 42 shows a command data definition for this command definition. SWE Command ExampleIn Siebel Tools, create a command named AlertTest with the properties shown in Table 43. This SWE command is executed by the communications command shown earlier and in turn invokes the CTI_Test.Alert business service method. Server and Browser Script ExamplesDefine the following server script in the CTI_Test business service. The PreCanInvokeMethod server script in the CTI_Test business service allows the SWE command to be enabled that in turn invokes the browser-layer scripting business service method Alert: function Service_PreCanInvokeMethod (MethodName, &CanInvoke) Define the following browser scripts in the CTI_Test business service. The PreInvokeMethod browser script invokes the Alert method to create an alert box in the browser. function Service_PreCanInvokeMethod (methodName) function Service_PreInvokeMethod (methodName, inputPropSet, outputPropSet) In the previous steps, you have successfully created a new communications command named Alert. You can execute this command, for example, from the Communications submenu of the Tools menu, or from a keyboard shortcut. Another option is to further integrate this command with a server script, as illustrated in the following server script example: function BrowserScriptTest() |
Siebel CTI Administration Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |