GetService_Method
The GetService method creates a business service instance that allows Siebel Open UI to call a business service method that this business service instance contains. It returns the business service name. It uses the following syntax:
SiebelApp.S_App.GetService("name"));
where:
name is a string that identifies the name of the business service that GetService calls when it creates the business service instance.
For example, assume you must configure Siebel Open UI to call a business service from custom code that resides on the client, and that this code does not bind an applet control that resides in the repository to a business service. You can use the GetService method to create a business service instance that Siebel Open UI can use to call a business service method that this business service contains.
Assume you must configure Siebel Open UI to call the following business service:
Task UI Service (SWE)
The following code creates an instance of this business service:
var service = SiebelApp.S_App.GetService("Task UI Service (SWE)"));
You can configure Siebel Open UI to call a business service method that this business service contains after this instance is available. For example, the following code calls the GoToInbox method that the Task UI Service (SWE) business service contains:
if(service){outPS = service.InvokeMethod("GoToInbox", inPS,true);}
For more examples that use GetService, see the following topics:
For information about Siebel Open UI uses GetService with InvokeMethod, see Invoke Method for Business Services.