Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods > NewRecord MethodNewRecord adds a new record (row) to the business component. SyntaxBusComp.NewRecord(whereIndicator)
ReturnsUsageThis 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 To place the copy after the original record, use the following command. In certain cases, using the NewRecord method in a server script results in slow performance for this method. There is no error message shown and the new record is created, but the response time is not optimal. This is due to the expected behavior of the application when creating new records. Before an application inserts a new record into the database, it must obtain the cursor for the record set to position the new record in the record set. This requires the record set to be populated before creating the new record. In the context of a script, a query must be run on the business component before the NewRecord method is called. If the query is not explicitly run in the script, the application will force a query to run to bring back the cursor. The application will normally run a full table query, which results in the performance issue. For more information on performance issues with the NewRecord method, see Doc ID 477556.1 on OracleMetaLink 3. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script ExampleThe following example is in Siebel VB: Dim oBusObj as BusObject Set oBusObj = TheApplication.ActiveBusObject |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |