Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Siebel Object Interfaces Reference > Object Interfaces Reference > Application EventsThis topic describes application events. It includes the following topics:
You can use these events only on the Siebel Server, except for the following events that you can use on the Siebel Server or on the browser: Application_Close EventYou can call the Application_Close event before the Siebel application exits. This technique allows scripts to perform cleanup, such as closing a connection to a COM server. Note the following:
This event does not return any information. FormatUsed WithSiebel Business Processes call this event. For more information, see Siebel Business Process Framework: Workflow Guide. Application_InvokeMethod EventSiebel CRM calls the Application_InvokeMethod event after a specialized method is called. This method returns TRUE if the call succeeds or FALSE if the call does not succeed. For more information, see About Specialized and Custom Methods. Browser Script FormatApplication_InvokeMethod(name, inputPropSet) The arguments you use with this format are the same as the arguments described in Table 25. This method sends the values you enter in the inputPropSet argument to the InvokeMethod event. Server Script FormatApplication_InvokeMethod(methodName) The arguments you use with this format are the same as the arguments described in Table 25 except there is no inputPropSet argument. Used WithRelated TopicsFor more information, see the following topics: Application_Navigate EventSiebel CRM calls the Application_Navigate event after the user navigates to a view. This event does not return any information. FormatUsed WithApplication_PreInvokeMethod EventSiebel CRM calls the Application_PreInvokeMethod event before one of the following items calls a specialized method: This method returns ContinueOperation or CancelOperation. For more information, see Caution About Using the Cancel Operation Event Handler. For more information about this method, see About Specialized and Custom Methods and Customizing the Outcome of an Object Interface Event. Browser Script FormatApplication_PreInvokeMethod (methodName, inputPropSet) The arguments you use with this format are the same as the arguments described in Table 25. Server Script FormatApplication_PreInvokeMethod(methodName) The arguments you use with this format are the same as the arguments described in Table 25, except there is no inputPropSet argument. UsageIf the method you instruct Siebel CRM to call is part of an If statement, then you must set the return value for the PreInvokeMethod before the End If statement. The following code is an example of this usage: If MethodName = "ResetQuery" then Used WithExamplesThe following example is in Siebel VB: Function Application_PreInvokeMethod (MethodName _ Dim i As Integer Case "LaunchExcel" The following is the equivalent example in Siebel eScript. Note that for this script to run, the entire Clib.system statement must reside on a single line in the editor: function Application_PreInvokeMethod (MethodName) var iReturn = ContinueOperation; case "LaunchExcel": Application_PreNavigate EventSiebel CRM calls the Application_PreNavigate event before it displays the view where the user navigates. This event returns CancelOperation or ContinueOperation. For more information, see Caution About Using the Cancel Operation Event Handler. FormatApplication_PreNavigate(DestViewName, DestBusObjName) Table 54 describes the arguments for the Application_PreNavigate event. Used WithExamplesIn the following Siebel eScript example, the script Identifies the current business object and sets the current contact Id as a global variable. You can use this variable to keep context: function Application_PreNavigate (DestViewName, DestBusObjName) Application_Start EventSiebel CRM calls the Application_Start event when the Siebel client starts and again when it displays the client interface for the first time. This event does not return any information. CAUTION: Do not use the RaiseErrorText method in the Application_Start event. The RaiseErrorText method does not work in the Application_Start event, and can cause the Application Object Manager to abort. FormatApplication_Start(commandline) Table 55 describes the arguments for the Application_Start event.
Siebel Business Processes call this event. For more information, see Siebel Business Process Framework: Workflow Guide. Used WithExamplesThis example Siebel VB code returns the first and last name of the user who logs in to the Siebel application: Sub Application_Start(CommandLine As String) sLoginName = TheApplication.LoginName |
Siebel Object Interfaces Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |