The screenshot below shows an order. The master is composed
of 3 panels, one panel-details and another panel for the total.
<
form
label="Orders"
xmlns="http://www.evolutility.com" >
<
data dbtable="NW_ORDERS"
dborder="t.OrderDate desc"
entity="order"
entities="orders" />
<
panel label="Order"
width="100">
<field
label="Order ID" ... />
<field
label="Customer" ... />
...
</
panel>
...
<
panel-details
panelid="1"
label="Order Details"
width="100"
dbtabledetails="NW_OrderDetails"
dbcolumndetails="OrderID"
dborder="t.Productname" >
<field label="Product" ... />
<field label="Unit price" ... />
...
</
panel-details>
<
panel label=""
width="84"
cssclass="none"></
panel>
<
panel label=""
width="16">
<field
label="Total Price" ... />
</
panel>
</
form>
dbcolumndetails
Key column (in the details table) used to join it to the master table.
In the sample XML above, with dbtable=NW_ORDERS, dbtabledetails=
NW_OrderDetails, dbcolumndetails="OrderID", the where clause for the query of
the details rows would be "NW_ORDERS.ID= NW_OrderDetails.OrderID"
dbcolumnmaster
Column (in the master table) used to join with the details table.
dbmaxrow
Maximum number of rows displayed.
dbtabledetails
Name the driving table for the details.
panelid
Each panel-details must have this attribute (set to an integer value) and each field inside that must also have it (with the same matching value).
Please look at the Wine cellar sample application as an example of how it works.