Hello,
In SmartClient Version: SC_SNAPSHOT-2011-11-08/PowerEdition Deployment (built 2011-11-08).
When updating an existing record in a form with a selectItem that allows an empty value:
When i select the empty value in the selectitem, and save the form using:
It should mean that Teacher_id will be persisted to NULL. Instead it does not send this field to the server at all, thus the update method leaves it untouched. So the Teacher_id value stays at its old value instead of being NULL'd.
I remember this used to work before, so is it a small regression? All my forms with this kind of behaviour throughout my app suffer from this.
In SmartClient Version: SC_SNAPSHOT-2011-11-08/PowerEdition Deployment (built 2011-11-08).
When updating an existing record in a form with a selectItem that allows an empty value:
Code:
final SelectItem teaSel = new SelectItem("Teacher_id", "Teacher"); teaSel.setOptionDataSource(DataSource.get("Teacher")); teaSel.setValueField("Teacher_id"); teaSel.setDisplayField("surname"); teaSel.setAllowEmptyValue(true);
Code:
form.saveData();
I remember this used to work before, so is it a small regression? All my forms with this kind of behaviour throughout my app suffer from this.
Comment