3.3.4. <datasets> Section
Datasets define what data your controls see. Each <dataset> includes one or more <resource> elements (the data sources) and a <record> element describing fields. You can define multiple datasets if your application needs multiple data groupings.
<dataset name="productsList">
<resources>
<resource from="product" resourceType="entity" as="product"/>
</resources>
<record>
<field name="name" resource="product.name"/>
<field name="sku" resource="product.sku"/>
<field name="weight" resource="product.weight"/>
<field name="dimension" resource="product.dimension"/>
<field name="min_order_qty" resource="product.min_order_qty"/>
<field name="lead_time" resource="product.lead_time"/>
<field name="meta_keywords" resource="product.meta_keywords"/>
<field name="meta_description" resource="product.meta_description"/>
<field name="created" resource="product.created"/>
<field name="is_discontinued" resource="product.is_discontinued"/>
<field name="category" resource="product.category"/>
<field name="family" resource="product.family"/>
<field name="image" resource="product.image"/>
<field name="asset" resource="product.asset"/>
</record>
</dataset>name: Required. Unique identifier for this dataset.<resources>: Required. A list of<resource>elements.<record>: Describes the fields (columns) you want to use from these resources.
Last updated