Athento allows you to customize the columns of the document list displayed in the “Documents” tab of forms. For example, you can use this option to permanently hide the author and the creation date in the documents tab for all users.
These settings are available from the advanced administration of the form. Specifically, they are located in “Document type table configurations”, within the “Configuration” attribute.
The configuration that overrides the default behavior of the table must be defined in JSON format, in the “Configuration” attribute.
For each column you want to modify, you must indicate its identifier.
The available identifiers are:
- filename: column with the document title.
- lifecycle_state: column for the document lifecycle status.
- state: column for the document status.
- creation_date: column for the document creation date.
- serie: column for the document space.
- author: column for the document author.
- version: column for the document version.
- UUID of a field: the identifier of a field column is the UUID of that field.
The configuration options available for each column are:
- title: text displayed in the column header.
- hidden: indicates whether the column is hidden; use true to hide it.
- cell: configuration of the cell content.
- format: cell display format. Currently, formatting is only supported for dates.
- filter: configuration of the filter content.
- format: filter display format. Currently, formatting is only supported for dates.
In addition, you can define general options for the table:
- order_column: list with the identifier of the columns in the order you want them to be displayed.
- visible_column: list with the identifier of the columns that will appear selected by default in the table; they will be visible by default.
Below is an example of configuration JSON:
{
"filename": {
"title": "Custom column name"
},
"1de78099-362a-4c42-abf1-d067852538f8": {
"title": "Custom field column name",
"cell": {
"format": "dd/MM/yyyy"
},
"filter": {
"format": "dd/MM/yyyy"
}
},
"creation_date": {
"hidden": true
},
"order_column": [
"1de78099-362a-4c42-abf1-d067852538f8",
"filename",
"creation_date"
],
"visible_column": [
"filename",
"creation_date"
]
}
Format of date-type columns
The units are referenced with: dd (days), MM (months), yyyy (years), HH (hours), mm (minutes) and ss (seconds).