Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods > FirstRecord MethodFirstRecord moves the record pointer to the first record in a business component, making that record current and invoking any associated script events. NOTE: When executing a query on a business component, SQL is generated for any active child business component. Calling the FirstRecord method triggers the BusComp_ChangeRecord event and causes the same SQL for the child business component to execute again. SyntaxReturnsAn integer in Siebel VB: 1 or nonzero if there was a first record (the query returned results) and 0 if there are no records; a Boolean in Siebel eScript, COM, and ActiveX. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script ExamplesThe following examples show how the FirstRecord method could be used to check whether an Account displayed in a child applet (for example, the Account List Applet - child applet in the Contact Detail - Accounts View) has any service requests associated to it. The outcome of this could then determine whether other code should be run against the Account record. The following example is in Siebel eScript: function BusComp_PreInvokeMethod (MethodName) with (oBC) // additional code placed here else The following example is in Siebel VB: Function BusComp_PreInvokeMethod (MethodName As String) As Integer ''CheckSR' method invoked from a custom button On 'Account List Applet - child' Applet. Set oBO = TheApplication.ActiveBusObject With oBC Set oBC = Nothing BusComp_PreInvokeMethod = iRtn Related Topic |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |