Skip to main content

Generic

Generic

The "Generic" ViewTemplate is used to display one or more EntityFields of a single dataset in a vertically arranged layout. It allows flexible selection and ordering of fields and includes various optional configuration options to control the appearance and behavior of the field list.

Overview

This ViewTemplate provides a compact way to display field information from a single dataset. It is particularly suited for supplementary sections in the UI, such as a PreviewView.

Field Selection and Ordering

To configure the displayed fields, open the editor of the fields property:

  1. Add fields using the plus (+) button.
  2. Modify field selections via the combo boxes next to each field entry.
  3. To remove a field, select it using the checkbox and press the minus () button.
  4. Reorder fields using the arrow up/down buttons.

Optional Configuration Properties

PropertyDescription
titleTitle of the ViewTemplate as defined in the "Add" dialog. (Currently has no functional effect.)
editModeEnables editability of the listed fields.
showDrawerDisplays the fields within a drawer (a collapsible section with a caption bar).
drawerCaptionText shown in the drawer’s caption bar.
fixedDrawerPrevents the drawer from being collapsible (fields are always visible).
hideLabelsHides the field labels (i.e., no text shown to the left of the values).
informationFieldDisplays a specified EntityField at the top when in edit mode.
hideEmptyFieldsControls whether fields without a value ("empty") are shown with a label or hidden completely.

Example

ViewTemplate: "Info"
Used in View: OrganisationPreview_view
Context: Company

Appearance in the Client

To see this ViewTemplate in action:

  1. Navigate to:
    Contact Management > Company
  2. Ensure the Preview view is active (the eye icon must be framed in blue).
  3. Click on a company in the Filter View's table.
  4. The lower section of the Preview View will display the "Info" ViewTemplate, showing four labeled fields:
    • Language
    • Status
    • Type
    • Information

Generic

Configuration

In the "Info" ViewTemplate of Organisation_entity, the following configuration is defined:

  • fields:
    • LANGUAGE
    • STATUS
    • TYPE
    • INFO
  • showDrawer:
    • This property is enabled, which means the fields are grouped within a drawer component.

This configuration allows for a concise and structured display of important company metadata in a space-saving and user-friendly format.