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

NextRecord Method


NextRecord moves the record pointer to the next record in the business component, making that the current record and invoking any associated script events.

Syntax

BusComp.NextRecord

Argument
Description

Not applicable

 

Returns

An integer in Siebel VB; a Boolean in Siebel eScript and COM: 1 if the current record was moved to the next record, 0 if the current record was already the last record.

Used With

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

Example

The following example is in Siebel eScript. For the equivalent Siebel VB example, read FirstRecord Method.

var i = 0;
var isRecord;

with (this)
{
   ClearToQuery();
   SetSearchSpec("Name", "*");
   ExecuteQuery(ForwardBackward);
   isRecord = FirstRecord();
}
while (isRecord)
{
   i++;
   isRecord = BusComp.NextRecord();
}

See Also

FirstRecord Method

Siebel Object Interfaces Reference