Skip to main content

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
titleTitle of the component
devicesDetermines 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…
childrenList of children in this container
entityFieldThis property is mandatory. Its value must be set to
fieldsContainer for datamodel fields, e.g. for tables
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.
editModeSwitches between read only mode or edit mode of the generic
showDrawerDetermines, if the drawer is shown above the generic
drawerCaptionThe caption of the drawer.
fixedDrawerDetermines, if the drawer is always open or if it can be minimized
hideLabelsDetermines, if the field labels are shown or hidden
hideEmptyFieldsDetermines, if fields that have no content are hidden or always shown
viewRendererMappingMapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used.
editRendererMappingMapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used.
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.
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…
colspanThe colspan of the element.
rowspanThe 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.