Overview
Thectx object provides low-level methods for directly accessing and manipulating cells and rows by their IDs or by querying for specific values. These methods are useful when you need precise control over individual cells or when working with dynamic references.
Row Methods
ctx.row()
Get a row’s UUID by using a row selector.id- The UUID of the rowindex- The numeric index of the row (0-based)label- A label assigned to the row
ctx.getRowByValue()
Find a single row where a column matches a specific value.columnName- The name of the column to searchvalue- The value to match
Row object if found, or null if no match
Example:
ctx.setRowValues()
Set multiple values on a specific row by its ID.rowId- The UUID of the row to updatevalues- An object mapping column names to new values
Column Methods
ctx.col()
Get a column’s UUID by its name.columnName- The name of the column
Cell Methods
ctx.setCell()
Set the value of a specific cell by row and column IDs.rowId- The UUID of the rowcolId- The UUID of the columnvalue- The new value to set
ctx.setCellMetadata()
Set metadata on a specific cell.rowId- The UUID of the rowcolId- The UUID of the columnmetadata- An object containing metadata key-value pairs