3.3.4.2. <record> and <field>
The <record> element encloses multiple <field> definitions. Each <field> represents a column (or a computed property) you want to use from the resource. Example:
<record>
<field
name="name"
resource="product.name"
/>
<field
name="countProductsPerCategory"
resource="count(category.product)"
/>
<field
name="nestedData"
resource="product"
>
<!-- Optionally you can have nested <record> inside a <field> if you want
nested fields -->
<record>
<field name="innerValue" resource="product"/>
</record>
</field>
</record>name: Required. The field identifier.resource: Required. The alias (as) from<resource>. Operators are supported. E.g.,count,sum,avg. Example:count(category.product)
Last updated