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

PreviousRecord Method


PreviousRecord moves to the previous record in the business component, invoking any associated Basic events.

Syntax

BusComp.PreviousRecord

Argument
Description

Not applicable

 

Returns

An integer in Siebel VB; Siebel eScript, a Boolean in COM, and ActiveX: 1 or nonzero if the current record was moved to the previous record, 0 if the current record was already the first record.

Usage

PreviousRecord may be used only on a business component that has been queried using the FowardBackward CursorMode.

Used With

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

Example

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

(general) (declarations)
Option Explicit

Private Sub PreviousRecord_Click()
   Dim errCode As Integer
   Dim oBusComp as BusComp
   FieldValue.Text = ""
   HourClassStart
   oBusComp.PreviousRecord errCode
   If errCode = 0 Then
      FieldValue.Text = oBusComp.GetFieldValue(FieldName.Text, _
         errCode)
   End If

   HourClassStop
   Status.Text = SiebelApplication.GetLastErrText

End Sub

See Also

ExecuteQuery Method

Siebel Object Interfaces Reference