This example block updates the cell values of the selected records in your base, adding 1 to the current cell value of a field in each record.
The code shows:
-
How to use the Cursor API to detect when a user has selected records in grid view, and how to get the selected records.
-
How to update multiple records from your block.
-
How to check if the user has write permissions before performing an update.
-
Create a new base using the Menu Planning template
-
Create a new block in your new base (see Create a new block, selecting "Update records" as your template.
-
From the root of your new block, run
block run
.