GenericViewTemplate
This page provides generated reference documentation for the GenericViewTemplate data model.
Displays one or multiple entity fields of one single dataset, in a vertical list. You can select arbitrary entity fields in property "fields".
Overview
| Property | Summary |
|---|---|
| title | Title of the component |
| devices | Determines on wich devices the component should be available. The default value states that the component is available on all devices. If one or more devices… |
| children | List of children in this container |
| entityField | This property is mandatory. Its value must be set to |
| fields | Container for datamodel fields, e.g. for tables |
| informationField | Defines the field which provides additional information. The placement of the information label varies between the ViewTemplates. The information label is only… |
| isEditable | Editable yes/no. |
| editMode | Switches between read only mode or edit mode of the generic |
| showDrawer | Determines, if the drawer is shown above the generic |
| drawerCaption | The caption of the drawer. |
| fixedDrawer | Determines, if the drawer is always open or if it can be minimized |
| hideLabels | Determines, if the field labels are shown or hidden |
| hideEmptyFields | Determines, if fields that have no content are hidden or always shown |
| viewRendererMapping | Mapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used. |
| editRendererMapping | Mapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used. |
| isLabelPositionTop | Defines if the label position of a FormItem is on top or to the side. Mobile devices will always use the top position and ignore this option. |
| textAlignment | Specifies the text alignment for the values of the viewtemplate (default = left). The text alignment is the same for all of the value elements within the… |
| colspan | The colspan of the element. |
| rowspan | The rowspan of the element. |
title
Type: String
Constraints: Verification: TITLE_LENGTH
Title of the component
devices
Type: EDeviceType[]
Determines on wich devices the component should be available. The default value states that the component is available on all devices. If one or more devices are selected then the component is only available for those selected devices.
children
Type: Children
List of children in this container
entityField
Type: String
This property is mandatory. Its value must be set to\
- #ENTITY, when the ViewTemplate uses multiple EntityFields of the Entity belonging to the View (default).\
- a single EntityField, if the ViewTemplate uses only this one single EntityField (example: WebContentViewTemplate).
The second option will result in a performance optimization.
fields
Type: INeonFieldGroupDataModel.Field
Container for datamodel fields, e.g. for tables
informationField
Type: String
Defines the field which provides additional information. The placement of the information label varies between the ViewTemplates. The information label is only shown once per ViewTemplate.
isEditable
Type: Boolean
Default: true
Editable yes/no.
editMode
Type: Boolean
Requires: isEditable = true
Switches between read only mode or edit mode of the generic
showDrawer
Type: Boolean
Constraints: Verification: DRAWER_FLAG
Determines, if the drawer is shown above the generic
drawerCaption
Type: String
The caption of the drawer.
fixedDrawer
Type: Boolean
Determines, if the drawer is always open or if it can be minimized
hideLabels
Type: Boolean
Determines, if the field labels are shown or hidden
hideEmptyFields
Type: Boolean
Default: true
Determines, if fields that have no content are hidden or always shown
viewRendererMapping
Type: RendererMappingDataModel
Mapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used.
editRendererMapping
Type: RendererMappingDataModel
Mapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used.
isLabelPositionTop
Type: Boolean
Default: false
Defines if the label position of a FormItem is on top or to the side. Mobile devices will always use the top position and ignore this option.
textAlignment
Type: ETextAlignment
Requires: isLabelPositionTop property group
Specifies the text alignment for the values of the viewtemplate (default = left). The text alignment is the same for all of the value elements within the viewtemplate regardless of their content type. When isLabelPositonTop = true is set then the textAlignment property will be ignored.
colspan
Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE
The colspan of the element.
rowspan
Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE
The rowspan of the element.