Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Object Interfaces Reference > Siebel Object Interfaces Reference > Object Interfaces Reference > Miscellaneous MethodsThis topic describes other methods. It includes the following topics: GetErrorCode MethodThe GetErrorCode method returns a string that contains a numeric error code. For more information, see GetErrorMessage Method. FormatUsed WithExamplesThe following example for the Siebel Java Data Bean returns the first record in the Account business component. If an error occurs, then the script displays the error code and error message: try m_busComp.release(); m_busObject.release(); Sieb_dataBean.logoff(); catch (SiebelException e) GetErrorMessage MethodThe GetErrorMessage method returns a string that contains an error message. For more information, see GetErrorCode Method. Formatpublic string getErrorMessage() Used WithTheApplication MethodThe theApplication method is a global method that returns a string that contains the name of an application object. This object is the root of objects in the Siebel Application Object hierarchy. Browser Script FormatSiebel VB FormatSiebel eScript FormatUsageYou can use the theApplication method to determine the object reference of the Siebel application. You can then use this information to find other objects or to call a method on the application object. For example, if you use Siebel eScript to determine if you are logged in to a server database or local database, then you can use the following code:
Used WithExamplesThe following Siebel VB example returns the login name from the application object and creates the Employee business object: Dim oEmpBusObj as BusObject |
![]() ![]() |
Siebel Object Interfaces Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |