Bookshelf Home | Contents | Index | Search | PDF |
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:With Java Data Bean the values are: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 NewAfterCopyUsed 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 BusCompSet oBusObj = theApplication.ActiveBusObject
Set oBC = oBusObj.GetBusComp("Action")
oBC.NewRecord NewAfter
oBC.SetFieldValue "Type", "To Do"
oBC.SetFieldValue "Description", "Find Decision Makers")
oBC.WriteRecordset oBC = Nothing
set oBusObj = Nothing
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |