Handbook · Reference · Blockly · Table

Blockly: Table

Where in the UI. Scripts tab toolbox.

CTBL / file-table rows, CSV, columns.

Block idRead asPurpose
containd_append_table_rowappend table rowvalues list order must match table columns; host coerces types
containd_set_table_rowset table rowoverwrite row at 0-based index; same list shape as append
containd_remove_table_rowremove table rowremove row at 0-based index and persist
containd_clear_tableclear tableremove all rows; column schema unchanged
containd_set_table_rowsset table rowsreplace all rows from a 2D list (inverse of table rows); host coerces types
containd_get_table_row_countget table row countcallHost(getTableRowCount).value.rowCount
containd_get_table_row_count_on_itemget table row count on itemcallHost(getTableRowCount) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_columnsget table columnsreturns column id strings in schema order
containd_get_table_columns_on_itemget table columns on itemcallHost(getTableMeta) column ids with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_headersget table headerslocalized header labels in column order
containd_get_table_headers_on_itemget table headers on itemcallHost(getTableMeta) headers with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_column_typesget table column typestype strings (string/int/double/timestamp/color)
containd_get_table_column_types_on_itemget table column types on itemcallHost(getTableMeta) column types with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_meta_max_rowsget table meta max rowscallHost(getTableMeta).value.maxRows
containd_get_table_meta_max_rows_on_itemget table meta max rows on itemcallHost(getTableMeta).value.maxRows with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_rowsget table rows2D list of all rows (column order)
containd_get_table_rows_on_itemget table rows on itemcallHost(getTableRows) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_table_to_csvtable to csvCSV string for this table/fileTable property (pick property when item has multiple tables)
containd_table_to_csv_on_itemtable to csv on itemcallHost(tableToCsv) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_rowget table rowone row as a list at 0-based index
containd_get_table_row_on_itemget table row on itemcallHost(getTableRow) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_create_empty_table_rowcreate empty table rowlist of nulls matching column count (fill then append/set)
containd_create_empty_table_row_on_itemcreate empty table row on itemcallHost(createEmptyTableRow) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_extract_table_columnextract table columnflat row-ordered values list (timestamp cells are epoch ms)
containd_extract_table_column_on_itemextract table column on itemcallHost(extractTableColumn) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_set_table_columnset table columnvalues list length must equal row count; host coerces types