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

NewRecord


NewRecord adds a new record (row) to the business component.

Syntax

oBusComp.NewRecord(whereIndicator)

Argument
Description
whereIndicator
Predefined constant or corresponding integer indicating where the new row is added. This value should be one of the following:
  • 0 (or NewBefore)
  • 1 (or NewAfter)
  • 2 (or NewBeforeCopy)
  • 3 (or NewAfterCopy)
With Java Data Bean the values are:
  • FALSE (equivalent to NewBefore)
  • TRUE (equivalent to NewAfter)

Returns

Not applicable

Usage

This new row becomes the current row, either before or after the previously current record, depending on the value you selected for WhereIndicator.

You can use NewRecord to copy a record. To place the copy before the original record use the following command.

Object.NewRecord NewBeforeCopy

To place the copy after the original record, use the following command.

Object.NewRecord NewAfterCopy

Used With

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

Example

Here is a Siebel VB example:

Dim oBusObj as BusObject
Dim oBC as BusComp

Set oBusObj = theApplication.ActiveBusObject
Set oBC = oBusObj.GetBusComp("Action")
oBC.NewRecord NewAfter
oBC.SetFieldValue "Type", "To Do"
oBC.SetFieldValue "Description", "Find Decision Makers")
oBC.WriteRecord

set oBC = Nothing
set oBusObj = Nothing


 Siebel Object Interfaces Reference 
 Published: 18 June 2003