A list view is defined by the tag <grid>.
The syntax is as follows:
<grid
title="gridTitle"
name="gridName"
model="gridModel"
editable="true|false"
orderBy="sequence_fields"
>
<toolbar ... [0..1]/>
<field ... [1..*] />
</grid>
<grid title="Orders" name="order-grid" orderby="orderDate">
<field name="name"/>
<field name="customer"/>
<field name="orderDate"/>
<field name="totalAmount"/>
<field name="confirmed"/>
</grid>
The list view is displayed as follows:
The fields of vision are aligned to the left, except for integers and decimals are right aligned and Boolean that are displayed in the center.
You can view more information on this type of view. For example, display items that do not belong to the current model. This can be done by pointing the elements: (Syntax JPA)
<field name="customer.firstName"/>
firstName is a field of the object customer .
In addition, collections can beings in a My View lists. The registration number will be displayed:
Here, D'Address List is a M2M the object. The first contact has one address, the second two addresses ....