Hello,
It appears that optionDataSource.displayField is not being set based on the information provided in the datasource.ds.xml as mentioned in Editing included fields here http://www.smartclient.com/smartgwte...ml#includeFrom
The issue can be observed by modifying money_transfer.ds.xml as following
and adding it to builtinDS example:
Payment Currency ID becomes SelectItem with optionDataSource correctly set to currency, but the SelectItem shows empty rows, one for every record in currency datasource. Selecting a row and moving out of the SelectItem shows currency.id as the field value, not currency.symbol as expected. Is there an extra configuration that needs to be done in order to assign displayField correctly?
The issue has been identified using Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-06-22/Enterprise Deployment 2014-06-22) and FireFox 24.6.0
It appears that optionDataSource.displayField is not being set based on the information provided in the datasource.ds.xml as mentioned in Editing included fields here http://www.smartclient.com/smartgwte...ml#includeFrom
The issue can be observed by modifying money_transfer.ds.xml as following
Code:
<field name="paymentCurrencyId" foreignKey="currency.id" relatedTableAlias="payment" displayField="paymentCurrencySymbol"/> <field name="paymentCurrencySymbol" includeFrom="currency.symbol" includeVia="paymentCurrencyId" hidden="true"/>
Code:
grid.setData(new ListGridRecord[]{ new DSRecord("moneyTransfer", moneyTransfer")});
The issue has been identified using Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-06-22/Enterprise Deployment 2014-06-22) and FireFox 24.6.0
Comment