// But make sure the value of the "id" field is set to "0", since a value of null could cause the dataSource's
// copyValues(Record) impl to choke.
FormItem idItem = this.form.getItem(FIELD_ID);
if (idItem != null) {
idItem.setDefaultValue(ID_NEW);
idItem.hide();
}
editRecord(record);
}