Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods > FirstSelected MethodFirstSelected moves the focus to the first record of the multiple selection in the business component, invoking any associated Basic events. 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 ActiveX, COM, and Siebel eScript. Used WithCOM Data Server, Server Script ExamplesThe following examples show how the FirstSelected method could be used in conjunction with the NextSelected method to provide custom multirecord deletion functionality. This code could be triggered in respect to the user invoking the Delete Selected custom method, when pressing a custom button on an applet. The following example is in Siebel eScript: function BusComp_PreInvokeMethod (MethodName) while (iRecord) The following example is in Siebel VB: Function BusComp_PreInvokeMethod (MethodName As String) As Integer iRtn = ContinueOperation With me |
Siebel Object Interfaces Reference |