Upgrade from 13.0p_2024_01_20 to 14.1_2026_01_05
In 13.0 this code worked, properly sorting by value map String value. In 14.1 this code sorts by Integer key no mater what.
Map<Integer, String> comboDataUseTypes = com.modius.opendata.commondataresources.client.enums.DataType.getComboMapI();
final SelectItem fDataType = new SelectItem(FIELD_DATA_TYPE);
fDataType.setName(FIELD_DATA_TYPE);
fDataType.setTitle("Data Type");
fDataType.setWidth("*");
fDataType.setPickListWidth(130);
fDataType.setValueMap(comboDataUseTypes);
fDataType.setRequired(true);
fDataType.setSortField(1); // sort by String value not by Integer key
fDataType.setValue(defaultComboType);
fDataType.setRedrawOnChange(true);
One work around that I found is to convert value map to client only data source. This feels like a step back. Can you offer any better options? We have lots of these types of idioms.
In 13.0 this code worked, properly sorting by value map String value. In 14.1 this code sorts by Integer key no mater what.
Map<Integer, String> comboDataUseTypes = com.modius.opendata.commondataresources.client.enums.DataType.getComboMapI();
final SelectItem fDataType = new SelectItem(FIELD_DATA_TYPE);
fDataType.setName(FIELD_DATA_TYPE);
fDataType.setTitle("Data Type");
fDataType.setWidth("*");
fDataType.setPickListWidth(130);
fDataType.setValueMap(comboDataUseTypes);
fDataType.setRequired(true);
fDataType.setSortField(1); // sort by String value not by Integer key
fDataType.setValue(defaultComboType);
fDataType.setRedrawOnChange(true);
One work around that I found is to convert value map to client only data source. This feels like a step back. Can you offer any better options? We have lots of these types of idioms.
Comment