Hello,
I am using Smart GWT Pro release 2.3 and would like to include multi-select field item within my dynamic form. I am working from the show case example:
http://www.smartclient.com/smartgwt/showcase/#multi_select_new_category
The relevant code fragment is below.
The form field successfully auto fetches the option list and displays.
The issue I am having is that comma seperated options in the field are not being recognized by the UI control as being already selected (see attached image).
How do I get the UI control to recognize the "1st Decade" and "2nd Decade" values and check the appropriate items in the list.
Thank you
I am using Smart GWT Pro release 2.3 and would like to include multi-select field item within my dynamic form. I am working from the show case example:
http://www.smartclient.com/smartgwt/showcase/#multi_select_new_category
The relevant code fragment is below.
Code:
DataSource sdrMortalityDS = new DataSource(); sdrMortalityDS.setDataFormat(DSDataFormat.XML); sdrMortalityDS.setRecordXPath("//data/record"); sdrMortalityDS.setDataURL(constructWebServiceURL("sdrother", "field=mortality")); DataSourceTextField sdrMortalityDSField = new DataSourceTextField("item", "Mortality"); sdrMortalityDSField.setValueXPath("item"); sdrMortalityDS.setFields(sdrMortalityDSField); final SelectItem uiMortalityField = new SelectItem("mortality", "Mortality"); uiMortalityField.setMultiple(true); uiMortalityField.setMultipleAppearance(MultipleAppearance.PICKLIST); uiMortalityField.setOptionDataSource(sdrMortalityDS); uiMortalityField.setAutoFetchData(true);
The issue I am having is that comma seperated options in the field are not being recognized by the UI control as being already selected (see attached image).
How do I get the UI control to recognize the "1st Decade" and "2nd Decade" values and check the appropriate items in the list.
Thank you
Comment