Table logic and validation
Find out where a table in Dossier comes from, and why a record is sometimes not saved. Every table belongs to a data structure. The rules of that data structure apply every time a record is saved, wherever the data comes from.
How a table is created
You don't create a table in Dossier itself. A table is created in one of these ways:
- Keep data in Dossier is switched on for the data structure of a form. You switch it on for the data structure, not for the form itself. For more information, see Store form submissions in Dossier.
- An administrator creates a data structure in Orchestra, under Data structures.
- A connection to an external system, such as Pipedrive or SharePoint, supplies the data. You set up the connection in Hub.
Each row in the table is a record, and each column is a field of the data structure.
Which rules apply
A data structure can have rules at two levels. You find them on the page of the data structure in Orchestra, under Governance and validation.
- Field rules: rules for a single field, such as required, a fixed list of options, or a minimum and maximum.
- Business rules: rules that cover several fields at once.
Each rule results in green, orange or red. Green means the record meets the rules. Orange is only valid after approval. Red is not valid.
The database also enforces a few things itself, whatever you set. A reference must point to a record that exists, and a value that must be unique can appear only once.
When a rule prevents saving
Whether a rule actually prevents a record from being saved depends on the Assurance level of this data structure. You also choose this under Governance and validation.
| Level | What happens when you save |
|---|---|
| None (Platform) | Only what the database itself requires can prevent saving. |
| Insight | Same as Platform. The Data quality block also shows which records don't meet the rules. |
| Assurance | A record that results in red is not saved. |
| Control | Like Assurance. A record that results in orange is only valid after approval. |
This applies to every way a record can come in: Dossier, a form and a process step. A form also checks the rules you set on its fields in the browser. For more information, see Form fields and validation.
What happens when you change a record
- The new value appears in the table straight away. Anyone who reads the record after that sees the new value.
- A process that starts on a new or changed record also starts when you change the record in Dossier. You set this up at the start of the process. See Start and end of a process.
If a correction is part of the normal work, make it through a task or form in the process, so the process continues with it. Use Dossier for a one-off correction or repair.
