control.addRecordToBottom()
- Last UpdatedJun 25, 2024
- 1 minute read
Use addRecordToBottom() method to add a record at the end of the existing records on the Base Form.
Syntax
// B1 is a Base Form object.
B1.addRecordToBottom();
or
B1.addRecordToBottom(object);
Parameters
|
Parameter |
Description |
|---|---|
|
object |
Record to add. This parameter is optional. |
Return Value
This method returns the new record added.
Example
// Define a record to add.
var dataObj = { Name:"Kevin",Address:"Park Street 1" };
// Define a Base Form object.
var B1 = control.findById("B1");
// Add the record to the Base Form.
B1.addRecordToBottom(dataObj);
// or B1.addRecordToBottom();
Note: If you use this method to add a record using scripts for the On Record Add property of the Base Form, then at run-time a recursive loop will cause the browser to stop responding.