Use the Document Views create form to define the fields, labels, types, widths, and default visibility for a data model when it is displayed.
Steps
In the navigation, select Document Views.
Select Create.
In Name, enter a name for the document view.
For a model-backed view, leave View key empty.
In Model Resource, select the data model on which the view is based. Complete Model Resource because this field is required.
Optional: In Model key, enter a value to identify the model key for this view. Review Model class, which is populated automatically from the selected model resource and is read-only.
Select Save. The saved view record opens.
On the saved view record, select ADD COLUMNS. A form opens to define a column.
In Field, enter the model field name. In Label, enter the display label shown to users. In Type, set the column data type. In Width, enter the column width, such as
160px. In Show column by default, set whether the column is visible by default.Repeat the column-definition step for each additional column you want to add.
Optional: Select Reorder to change the order of the defined columns.
Result
The document view is saved with its name, model resource, and column configuration. It appears in the Document Views list and is available for use with the selected data model.
Related
