SmartGWT 2.4
I have a ListGrid and need one of its fields to have unique record values for that field. The field is a DataSourceTextField and its values are limited to what is provided via DataSourceTextField.setValueMap(Map). My first attempt involved calling DataSourceTextField.setPrimaryKey(true) but when I add two records to the ListGrid, I can still select the same map value for the field without getting any errors or indications that doing so is invalid.
I'm not actually using the ListGrid to do an update. I just read values off of it when it comes time to process the entries.
I have a ListGrid and need one of its fields to have unique record values for that field. The field is a DataSourceTextField and its values are limited to what is provided via DataSourceTextField.setValueMap(Map). My first attempt involved calling DataSourceTextField.setPrimaryKey(true) but when I add two records to the ListGrid, I can still select the same map value for the field without getting any errors or indications that doing so is invalid.
I'm not actually using the ListGrid to do an update. I just read values off of it when it comes time to process the entries.