Build
Forms and write-back
Let people add and change data from inside a report, with a record of every change.
Two ways to take input
| Form | Write-back | |
|---|---|---|
| What the reader does | Fills in a form and submits it | Adds, changes and deletes rows |
| What happens in your database | One new row for each submission | Rows of the table are inserted, updated or deleted |
| Typical use | Collecting a target, a comment or a request | Keeping a small table up to date: budgets, mappings, statuses |
Both write to a table in a database you have connected, and both sit in a report next to the visuals that read the same data.
Forms
Form is one of the visual types. A form is tied to one table, and each submission adds one row to it.
A submission is saved once. Sending the same submission again does not add a second row.
Vizset checks whether the person may submit the form, and tells them why if they may not.
People who can edit the form can see its submission history, newest first.
Write-back
A write-back visual shows the rows of a table and lets people add, change and delete them.
Vizset uses the table's primary key to tell which row a change belongs to.
Each column is either editable or read-only.
Changes are saved together. The result says how many rows were inserted, updated and deleted, and how many were rejected.
The record of changes
Every change made through write-back is logged, one entry for each row, with the old and the new values.
Each write-back visual has its own history.
Writeback Logs in the Console lists the changes across the workspace. Filter it by visual, operation or status.
Administrators see every change. Other people see the changes they made, and the changes made through visuals they created. The log holds data values, so it follows the same care as the data itself.
What the database needs
The database user of the connection must be allowed to write to the table. Reports only ever need read access, so:
Tip
Give the database user write access to the tables that forms and write-back use, and to nothing else.