Provide the following?
Code:
SelectItem.setDisplayFieldFunction(new DisplayFieldFunction(){ public String display(Record record){ return record.getAttribute("type")+" "+record.getAttribute("name"); } }); SelectItem.setValueFieldFunction(new ValueFieldFunction(){ public String value(Record record){ return record.getAttribute("type")+"_"+record.getAttribute("id"); } });
Comment