Given a datasource with a field declared like this
And a listgrid that fetches all rows (i.e., no explicit criteria is defined)
the framework generates a cartesian join for calculating the number of rows
Tested with 3.0-RELEASE and various nightlies through 3.1-2011-12-22.
Code:
<field name="ORDERID" canEdit="false" required="true" foreignKey="Order.ORDERID"/> <field name="CUSTOMERNAME" includeFrom="Order.CUSTOMERNAME"/>
Code:
grid.setDataSource(DataSource.get("OrderItem")); grid.setAutoFetchData(true);
Code:
SELECT COUNT(*) FROM MASTERDETAIL_ORDERITEM, MASTERDETAIL_ORDER WHERE ('1'='1')
Comment