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; a Boolean in Siebel eScript, COM, and ActiveX.

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 Web Client Automation Server, Server Script

Example

The following example is for Mobile 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
   SBusComp.PreviousRecord errCode
   If errCode = 0 Then
      FieldValue.Text = SBusComp.GetFieldValue(FieldName.Text, _
         errCode)
   End If

   HourClassStop
   Status.Text = SiebelApplication.GetLastErrText

End Sub

See Also

ExecuteQuery Method

Siebel Object Interfaces Reference