diff --git a/content/blog/v7-13-formulas-and-regex/formula_audit_demo.png b/content/blog/v7-13-formulas-and-regex/formula_audit_demo.png new file mode 100644 index 0000000..f3e91ad Binary files /dev/null and b/content/blog/v7-13-formulas-and-regex/formula_audit_demo.png differ diff --git a/content/blog/v7-13-formulas-and-regex/index.md b/content/blog/v7-13-formulas-and-regex/index.md index 4f07553..18fca40 100644 --- a/content/blog/v7-13-formulas-and-regex/index.md +++ b/content/blog/v7-13-formulas-and-regex/index.md @@ -116,7 +116,7 @@ Formulas can reference three runtime values, resolved when the formula is evalua * `DC.USER_NAME` - the logged-in user id. * `DC.ORIG_VALUE` - the original cell value before the current edit. -Our demo formula table puts them all to work. There's a row-status column (`=DC.ROW_STATUS`), a user column (`=DC.USER_NAME`), and a change summary that reads like a proper audit sentence: +Our demo formula table puts them all to work. There's a row-status column (`=DC.ROW_STATUS`), a user column (`=DC.USER_NAME`), and a `CHANGE_SUMMARY_COL` whose rule reads like a proper audit sentence: ``` =IF( DC.ROW_STATUS ="U","unedited", @@ -127,7 +127,11 @@ Here it is live in the editor. We edited `B_COL` on the second row from 10 to 25 ![](./formula_demo.png) -Behind the columns shown here, the same edit also resolved the change-summary formula from the snippet above to "root changed from orig-2" - because `DC.ROW_STATUS` is a live reference, the status updates as the user works: edit a cell and the stamp flips to your user id; cancel the edit and it reverts. +And here's the payoff of those `DC.*` references - the audit columns from the same table, same edit. `ROW_STATUS_COL` flipped to `M`, and the change summary resolved the `IF` formula above into a sentence - "root changed from orig-2": + +![](./formula_audit_demo.png) + +Because `DC.ROW_STATUS` is a live reference, it updates as the user works: edit a cell and the stamp flips to your user id; cancel the edit and it reverts. ### Editor behaviour worth knowing