Skip to main content

Card

Purpose

The Card ViewTemplate presents a compact visual summary of a single dataset. It is typically used in preview-oriented scenarios where a small number of important fields should be shown in a fixed, business-card-like layout.

Card Figure: Card ViewTemplate in a PreviewView.

Behavior

The layout of the Card ViewTemplate is predefined. It combines an image area with structured text fields and optional Action buttons.

The layout contains the following elements:

  • iconField for the image or icon in the upper area
  • titleField for the main title
  • subtitleField for secondary information
  • descriptionField for additional text
  • up to two Action buttons via favoriteAction1 and favoriteAction2
  • an optional labeled field via informationField

If informationField is not configured, that section remains hidden.

Configuration

An example configuration of the ViewTemplate Head uses the following fields of Salesproject_entity from module opportunity:

PropertyFieldDescription
iconFieldIMAGEDisplays the project image.
titleFieldPROJECTTITLEDisplays the main title.
subtitleFieldCONTACT_IDDisplays the associated company.
descriptionFieldPROJECTCODEDisplays the project code.
informationFieldSTATEDisplays optional additional information.

In this example, favoriteAction1 is configured with newActivity.

Example usage

One example is the ViewTemplate Head in SalesprojectPreview_view within Context Salesproject.

In the ADITO client, the ViewTemplate can be seen under Sales > Salesproject when the Preview is active and a project is selected in the Filter View. The Card is shown at the top of the PreviewView and displays the project image or placeholder, followed by core project information and configured Action buttons.