Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Using Siebel eScript > Coding with Siebel eScript > Using Script LibrariesThe ST eScript engine provides business service script libraries that assist you with developing components that are reusable and modular, which simplifies upgrades and maintenances. You can use script libraries to call global scripts. Script libraries provide the following capabilities:
Using script libraries is optional. Siebel CRM supports all code written prior to Siebel 8.0. Example of Calling a Business Service FunctionThe following example calls a method directly on the Data Transfer Service without declaring a property set. Calling a business service method directly results in scripts that are shorter and more readable: var oBS : Service = TheApplication ().GetService ("Data Transfer Service"); Example of a Creating Custom Method for a Business ServiceYou can write a custom method for a business service and make it available in Script Assist. The following example creates SendData, which is a custom wrapper method that resides on the Data Transfer Service: function SendData (sTag : String, sValue : String) oPS1.SetProperty ("Tag", sTag); this.InvokeMethod ("SendData", oPS1, oPS2) You can write code that intercepts and modifies the calls to the Data Transfer Service in a central location in the SendData method. Displaying a Custom Method in Script AssistThis topic describes how to display a custom method in Script Assist. For more information, see About the Script Assist Utility. For more information about setting an object property or about using the Server Script Editor to create, save, or compile a script, see Using Siebel Tools. To display a custom method in Script Assist
|
Siebel eScript Language Reference | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |