Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods > ActiveBusObject MethodActiveBusObject returns the business object of the active view. SyntaxReturnsThe business object of the active view UsageDo not use ActiveBusObject in any event handler that may be initiated by the COM Data Server, COM Data Control, or Java Data Bean. If you use ActiveBusObj() you get the business object that exists already (if there is one). If you use GetBusObject() instead, any child Business components are ALWAYS new ones, even if you have some already. Used WithBrowser Script, Mobile Web Client Automation Server, Server Script ExampleThe following example is in Browser Script: function Applet_Load () The following samples show an example of server side script that could be invoked from a custom button on a child applet within a view. The script first checks to see if the Contact business object is active, and if so, retrieves the email address of the currently active parent Contact record. The custom 'SendEmail()' function is then invoked using the Contact's email address. Note that the objects are not destroyed at the end of the script, as they are the ones that are currently active in the user interface. The following example is in Siebel eScript: function WebApplet_PreInvokeMethod (MethodName) if (oBO.Name() == "Contact") sEmail =""; The following example is in Siebel VB: Function WebApplet_PreInvokeMethod (MethodName As String) As Integer Dim iRtn As Integer If MethodName = "Send Email" Then Dim oBO As BusObject If oBO.Name() = "Contact" Then Dim oBC As BusComp Set oBC = oBO.GetBusComp("Contact") |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |