Hi I'm upgrading some legacy code compiled with SmartGWT 3.
I have a FilterBuilder that I set a DataSource on. One of the fields in the datasource is DataSourceEnumField. The current working code looks like this to allow me to populate the field's options as a dropdown based on a custom enum object (DealStatus).
Working SGWT3 code...
However after upgrading to SmartGWT 6 the dropdown in the FilterBuilder is populated with many blank entries (way more than my enum class contains). I've tried a few things but can't find any documentation on how to achieve this in 6.
What do I need to change?
Thanks
I have a FilterBuilder that I set a DataSource on. One of the fields in the datasource is DataSourceEnumField. The current working code looks like this to allow me to populate the field's options as a dropdown based on a custom enum object (DealStatus).
Working SGWT3 code...
Code:
SelectItem dealStatusSelectItem = new SelectItem(Fields.DEAL_STATUS); dealStatusSelectItem.setValueMap(DealStatus.descriptionsMap()); dealStatusSelectItem.setValueIcons(DealStatus.iconsMap()); DataSourceEnumField dealStatus = new DataSourceEnumField(Fields.DEAL_STATUS); dealStatus.setValidOperators(ClientUtils.standardEnumOperators()); dealStatus.setEditorProperties(dealStatusSelectItem); fields.add(dealStatus); // to datasource
What do I need to change?
Thanks
Comment