Hi Isomorphic,
when not explicitly using setOptionDataSource() for a .ds.xml field that already has a foreignKey defined and therefore already has an implicit optionDataSource, the framework generates two requests and also the loading of the SelectItem data is broken. See the very same testcase as here (also v10.1p_2017-08-03, FF26 Dev Mode), but comment out one line in private class ListGridFieldLifeSpan:
Now on load, this happens:
Issues:
Best regards
Blama
when not explicitly using setOptionDataSource() for a .ds.xml field that already has a foreignKey defined and therefore already has an implicit optionDataSource, the framework generates two requests and also the loading of the SelectItem data is broken. See the very same testcase as here (also v10.1p_2017-08-03, FF26 Dev Mode), but comment out one line in private class ListGridFieldLifeSpan:
Code:
private class ListGridFieldLifeSpan extends ListGridField { public ListGridFieldLifeSpan(final String name) { super(name); SelectItem mySI = new SelectItem(); [B]// mySI.setOptionDataSource(DataSource.get("employees"));[/B] mySI.setDisplayField("Name"); mySI.setSortField("Salary"); setEditorProperties(mySI); setFilterEditorProperties(mySI); } }
Issues:
- "Loading..." string stays
- Queue 3 is twice a PickList-fetchRemoteDataReply request, once with sortBy:["Salary"] and once without
Best regards
Blama
Comment