Skip to main content
Version: 2025.2

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

PropertySummary
childrenList of children in this container
colspanThe colspan of the element.
devicesDetermines on wich devices the component should be available.
drawerCaptionThe caption of the drawer.
editModeSwitches between read only mode or edit mode of the generic
editRendererMappingMapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used.
entityFieldThis property is mandatory. Its value must be set to 1. #ENTITY, when the ViewTemplate uses multiple EntityFields of the Entity belonging to the View…
fieldsContainer for datamodel fields, e.g. for tables
fixedDrawerDetermines, if the drawer is always open or if it can be minimized
hideEmptyFieldsDetermines, if fields that have no content are hidden or always shown
hideLabelsDetermines, if the field labels are shown or hidden
informationFieldDefines the field which provides additional information. The placement of the information label varies between the ViewTemplates. The information label is only…
isEditableEditable yes/no.
isLabelPositionTopDefines 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.
rowspanThe rowspan of the element.
showDrawerDetermines, if the drawer is shown above the generic
textAlignmentSpecifies 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…
titleTitle of the component
viewRendererMappingMapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used.

children

Type: Children

List of children in this container


colspan

Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE

The colspan of the element.


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.


drawerCaption

Type: String

The caption of the drawer.


editMode

Type: Boolean
Requires: isEditable = true

Switches between read only mode or edit mode of the generic


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.


entityField

Type: String

This property is mandatory. Its value must be set to

  1. #ENTITY, when the ViewTemplate uses multiple EntityFields of the Entity belonging to the View (default).
  2. 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


fixedDrawer

Type: Boolean

Determines, if the drawer is always open or if it can be minimized


hideEmptyFields

Type: Boolean
Default: true

Determines, if fields that have no content are hidden or always shown


hideLabels

Type: Boolean

Determines, if the field labels are shown or hidden


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.


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.


rowspan

Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE

The rowspan of the element.


showDrawer

Type: Boolean
Constraints: Verification: DRAWER_FLAG

Determines, if the drawer is shown above the generic


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.


title

Type: String
Constraints: Verification: TITLE_LENGTH

Title of the component


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.