Structured column references
Formulas can refer to columns by field ID instead of A1 address, for example =[@price]*[@qty] for the current row or =SUM([total]) for a whole column. Because these references follow the data model, they survive column reordering and work naturally with row-based data.
Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An invoice grid where the Line Total column has formula '=[@price]*[@qty]' and the footer has '=SUM([lineTotal])'.
Expected behavior
Reordering columns does not break any formula. Newly added rows compute Line Total automatically, and the footer sum includes them. An unknown field shows #REF!.
Planned API surface
columnDef: formulasyntax: [@field], [field], [#Totals]option: formulas.structuredReferencesmethod: formulaEngine.resolveStructured(ref, rowId)Acceptance criteria
- [@field] resolves to the same row's field value. (pending)
- Column-level formulas apply to every existing and new row without storing a formula per cell. (pending)
- Structured references survive column moves, hides and renames of the header display name. (pending)
- Unknown fields return #REF!. (pending)