loads or beam_data). This guide shows how to use that table in other widgetsβcomputed fields, checks, or any equation.
Think of the table like a spreadsheet: rows, columns, and cells. In equations, the reference ID is the name of the whole block of numbers.
Jump to a section
Reference ID
How the table name is used in equations
One cell
Single value with matrixSubset
One column
Whole column, then max / min / sum
Vectors
Flat lists with vectorSubset
Inside the table
T(), rowIndex, and 0-based indices
Lookup widgets
L() instead of matrixSubset
Reference ID
Every table widget has a reference ID you choose (or that comes from the template). That name is how you point at the table from anywhere else. Example: Your tableβs reference ID isloads.
In another widgetβs equation, writing loads means: βuse the entire table as one block of data.β You rarely want only thatβyou usually want one cell, one column, or a sum across rows. The next sections show how.
One cell with matrixSubset
UsematrixSubset when you need a single value at a specific row and column.
- Count rows and columns starting from 1 (first row = 1, first column = 1).
Full syntax and examples: Equation Functions (
matrixSubset).One column with col
Sometimes every row has a value in the same column (for example βdeflectionβ down the table). Usecol to take that whole column, then wrap it in max, min, sum, etc.
- Column numbers start at 1 for the leftmost column.
matrix(...) around the referenceβfollow the same idea: pick the column number, then aggregate.
Details: Equation Functions (
col()).Vectors with vectorSubset
If something is already a flat list of numbers (not a full table), usevectorSubset. Positions are counted from 1.
Pattern:
Inside the same table
When the equation lives in a column of that same table (for example a computed column), you do not use the reference ID for βthe cell to my left.β You useT, rowIndex, and colIndex.
T(row, column)refers to a cell in this table.- Inside the table, row and column indices start at 0 (first column = 0, first row = 0).
- Current row, first column:
T(rowIndex(), 0) - Current row, second column:
T(rowIndex(), 1)
More detail: Equation Functions (
T()).Lookup widgets
Lookup and shared lookup widgets useL(referenceId, column), not matrixSubset. The column index for L starts at 0 for the left column. That is a different widget type than a normal editable table.
See Lookup Widget and Equation Functions (L()).
Cheat sheet
| What you want | Where you write it | How |
|---|---|---|
| One cell from your table | Another widget | matrixSubset(MyTable, row, col) β rows/cols from 1 |
| Whole column, then e.g. max | Another widget | max(col(MyTable, col)) β col from 1 |
| One item from a list | Another widget | vectorSubset(list, n) β n from 1 |
| A cell in the same table | Computed column in that table | T(row, col) β from 0 |
Optional: loops and growing tables
If the table can grow or shrink and you need to add up every row, templates often usesetSum with size and matrixSubset. That is a more advanced pattern; the important part is still: your tableβs reference ID is the handle, and matrixSubset / col are how you read from it.
When to reach for setSum + size
When to reach for setSum + size
Use this when you cannot hard-code row numbers and need to iterate over all rows (for example summing a column dynamically). Start from Equation Functions and existing templates that use
setSum for a full pattern.Related articles
Table Widget
Configure tables, columns, and reference IDs
Equation Functions
matrixSubset, col, L, T, and more
Lookup Widget
When to use L() instead of a normal table
math.js background
Base math library used in equations