SmartGWT 2.1
GWT 2.0.4
I currently have this working however I can't seem to find any information on how to make my displayed value be a combination of two others, is this possible?
For instance I have this but would like my setDisplayField to be a
combination of the value and display field so the currently selected value can also be seen when shown on a DynamicForm.
I've also noticed if my data returned in this object is more than a page the value I have on my form is not the value that is preselected in the SelectItem (is there a way to fix this ?).
Thank you,
GWT 2.0.4
I currently have this working however I can't seem to find any information on how to make my displayed value be a combination of two others, is this possible?
For instance I have this but would like my setDisplayField to be a
combination of the value and display field so the currently selected value can also be seen when shown on a DynamicForm.
I've also noticed if my data returned in this object is more than a page the value I have on my form is not the value that is preselected in the SelectItem (is there a way to fix this ?).
Code:
public class XMLSelectItem extends SelectItem {
public XMLSelectItem(long id) {
XMLListGridDS ds = new XMLListGridDS();
ds.setID("xmlds_"+id);
setValueField("xmlid");
setDisplayField("dsc");
setEmptyPickListMessage("No data in table");
setPickListWidth(450);
ListGridField idField = new ListGridField("xmlid");
ListGridField dscField = new ListGridField("dsc");
setPickListFields(idField, dscField);
setOptionDataSource(ds);
setAutoFetchData(true);
}
}
Comment