CreateRecord Method (ITable<TRecord>)
- Last UpdatedApr 08, 2026
- 1 minute read
Creates a new record inside of table.
The action is executed prior to the record being added to the table. All required key fields should be populated during this action (Name, Dataset). To abort record creation, return false. To confirm record creation, return true;
The table must be unlocked when calling this.int CreateRecord(
Func<TRecord,bool> function
)
int CreateRecord(
Func<TRecord^,bool>^ function
)
Parameters
- function
- The Func to create the new record.
Return Value
The record number of the new record.
| Exception | Description |
|---|---|
| OASySDNA.RealTime.Data.Common.Exceptions.TableLockedException | A record creation was attempted on a locked table. |