Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

includeFrom results in optionDataSource.displayField is not being set

$
0
0
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
Code:

<field name="paymentCurrencyId" foreignKey="currency.id" relatedTableAlias="payment" displayField="paymentCurrencySymbol"/>
<field name="paymentCurrencySymbol" includeFrom="currency.symbol" includeVia="paymentCurrencyId" hidden="true"/>

and adding it to builtinDS example:
Code:

grid.setData(new ListGridRecord[]{
      new DSRecord("moneyTransfer", moneyTransfer")});

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

Attached Files
File Type: xml moneyTransfer.ds.xml (710 Bytes)
File Type: xml currency.ds.xml (245 Bytes)
File Type: html BuiltInDS.html (1.5 KB)
File Type: java BuiltInDS.java (6.4 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles