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.
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:
iconFieldfor the image or icon in the upper areatitleFieldfor the main titlesubtitleFieldfor secondary informationdescriptionFieldfor additional text- up to two Action buttons via
favoriteAction1andfavoriteAction2 - 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:
| Property | Field | Description |
|---|---|---|
iconField | IMAGE | Displays the project image. |
titleField | PROJECTTITLE | Displays the main title. |
subtitleField | CONTACT_ID | Displays the associated company. |
descriptionField | PROJECTCODE | Displays the project code. |
informationField | STATE | Displays 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.