Skip to content

Get Table

Returns an instance of the Table class, providing access to methods such as addRow(), addRows(), deleteRow(), deleteRows(), getRow(), getRows(), and toJSON().

Parameter

Parameterstypedescription
tableIdStringUnique Id of the table.

Syntax

const tableInstance = kf.context.getTable(fieldId);

Example

To retrieve the instance of the employee work experience table from your data form, mention the table ID, work_table1.

const worktableInstance = kf.context.getTable(work_table1);

Once you have obtained the table’s instance, you can execute various table operations like add row, get row, delete row, and so on.