Skip to content

Get Row

Returns a row instance of rowId from the specified table instance.

From the row instance, you can access methods such as updateField(), getField(), and so on.

Parameter

Parameterstype
rowIdString

Syntax

let rowInstance = tableInstance.getRow(rowId);

Example

A simple use case for updating the years of experience in the employee dataform.

let tableInstance = kf.context.getTable("work_table1");
let rowInstance = tableInstance.getRow("table_row_Id");
let yoe = await rowInstance.getField("table_field2");
rowInstance.updateField({ table_field2: yoe + 1 });