Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Service Events > Service_InvokeMethod EventThe InvokeMethod event is called after the InvokeMethod method is called on a business service. Server Script SyntaxService_InvokeMethod(methodName, InputArguments, OutputArguments)
Browser Script SyntaxOutputArguments=oService.InvokeMethod(methodName, InputArguments)
ReturnsUsageAlthough this event does not return a value, it may add properties to, or alter the values of the properties in, the property set OutputArguments. When you invoke business service methods through Browser Script, the business service may be implemented as a browser-based business service (written in JavaScript) or a server-based business service. Initially, the high interactivity mode framework checks if the business service resides in the browser, and if it does not find it, it sends the request to the server for execution. NOTE: Browser Script may invoke a browser-based or server-based business service, but Server Script can only invoke a server-based business service. NOTE: Although the InvokeMethod function does not return a value in Server Script, it may modify the properties in the OutputArguments property set. Used WithExampleThis Browser Script example invokes the Shipping Engine business service created in Service_PreInvokeMethod Event in response to a button click. The InvokeMethod property on the Button is set to "CalcShipping". It gets values from the keyboard through prompts (JavaScript method), passes a property set to the service, and gets return values by means of another property set. function Applet_PreInvokeMethod (name, inputPropSet) { var size = prompt("Enter the sum of H+W+D in inches"); with (inputs) { outputs = svc.InvokeMethod("CalculateShipping", inputs); theApplication().SWEAlert ("Shipping by " + shipper + ":\n Shipping Cost is " + See Also |
Siebel Object Interfaces Reference |