Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

LastRecord Method


LastRecord moves the record pointer to the last record in the business component.

Syntax

BusComp.LastRecord

Argument
Description

Not applicable

 

Returns

An integer in Siebel VB; a Boolean in ActiveX, COM, Java Data Bean, Siebel eScript.

Used With

COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script

Example

The following example is for Mobile Web Client Automation Server. SiebelApplication is an Application instance:

Private Sub LastRecord_Click()

   Dim errCode As Integer
   Dim oBusComp as SiebelBusComp
   FieldValue.Text = ""
   oBusComp.ClearToQuery
   oBusComp.ExecuteQuery ForwardBackward
   oBusComp.LastRecord errCode
   If errCode = 0 Then
      FieldValue.Text = oBusComp.GetFieldValue(FieldName.Text, _
         errCode)
   End If

   Status.Text = SiebelApplication.GetLastErrText
End Sub

Related Topics

FirstRecord Method
NextRecord Method

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.