Sections are also called sometimes “views” and is the last cornerstone for using Portrait. Sections define:
How the data will be represented
Who will see the section
If a form for capturing data is needed
How the search should behave
The section is a pure presentation layer. No data is stored in it.
Settings
Name |
|
---|---|
name | Used source. |
caption | Friendly name of the section. |
group | if you define this value in multiple sections, you can group several sections into one menu group. |
type |
|
description | Description, which is shown on top of each section in the UI |
role |
If you don’t define it, role |
formId | Use an existing form to provide an “add” feature in this section. Forms are highly flexible and support multiple types of fields and validations. Refer to: Forms |
formLabel | The caption of the “add” feature for the defined form. |
columns | This is defines which columns are shown in the section and how they should behave. You can define the data types, the label and if they should be shown in the summary or in the detail-view. Refer to: Column Types Example: columns: - label: 'Auftrag' key: 'SalesOrderNumber' type: 'number' showInTableHeader: true showInDetailList: true - label: 'Prod.-Auftrag' key: 'ProductionOrderNumber' type: 'number' showInTableHeader: false showInDetailList: true
|
sortField | on what field should the sorting be applied. By default, this is A user can always overwrite the sorting by clicking on the column header of a list. |
sortOrder |
|