currentRow

Gets or sets values on the record at the current index. Calling it without arguments returns the entire record at that index.

Usage

// get the full record at the current index
const row = dsMyDataObject.currentRow();

// read a field
defaultName.value = dsMyDataObject.currentRow('Name');

// update a field
dsMyDataObject.currentRow('Name', 'New name');

API

currentRow(): CurrentRow<T>;
currentRow<F extends keyof T>(field: F): T[F] | null;
currentRow<F extends keyof T>(field: F, value: T[F]): boolean;

Last updated

Was this helpful?