feat(blog): add audit-column demo image showing the IF formula resolving live
publish / Build-and-publish (push) Successful in 13m17s
publish / Build-and-publish (push) Successful in 13m17s
This commit is contained in:
@@ -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
|
||||
|
||||

|
||||
|
||||
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":
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user