Add formula fields to collections#274
Open
priethor wants to merge 15 commits into
Open
Conversation
71edfbf to
dc2fa2d
Compare
dc2fa2d to
4c91364
Compare
a8e4e2e to
c15d281
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes #108.
Adds formula fields to collections. A formula is read-only in the row, but can be configured from the field menu with
field("Name")orprop("Name"), arithmetic, text helpers, comparisons,if(), and a small set of date helpers, includingnow(). The computed value shows up in table rows, row detail, sorting, filtering, and indexed field reads when the result type supports it.Why
Computed fields are part of the core collection workflow. They let a table express values that are derived from the row itself, like totals, labels, checks, and date offsets, without turning those values into another thing the user has to edit.
How
if()result types, and unsupported multi-value references before save.now()formulas as snapshot values that refresh when formulas are evaluated, not as live ticking values.Testing Instructions
PriceandTax.Totalwithfield("Price") + field("Tax").PriceorTaxand confirmTotalupdates.Total.Screen recording
Grabacion.de.pantalla.2026-06-03.a.las.19.27.12.mov