SelectItem in DynamicForm has optionDataSource attached as follows:
When some record is opened inside DynamicForm then SelectItem will fetch display value from server as expected and that works fine.
Problem occurs when that same optionDataSource used in SelectItem is edited later in some ListGrid then display value of SelectItem remains old besides it is changed in optionDataSource by ListGrid.
It sounds like SelectItem is using old record to display.
It is interesting that in drop down list of SelectItem new value is shown as expected and even if I select that item from the list, display value of SelectItem goes back to old value.
Any help?
Thanks.
BR//Marije
Code:
final SelectItem field = new SelectItem(); field.setName(dslf.getName()); field.setTitle(dslf.getTitle()); field.setDisplayField(dslf.displayFieldName); field.setValueField(dslf.valueFieldName); field.setOptionDataSource(dslf.optionDataSource); field.setAutoFetchData(false);
Problem occurs when that same optionDataSource used in SelectItem is edited later in some ListGrid then display value of SelectItem remains old besides it is changed in optionDataSource by ListGrid.
It sounds like SelectItem is using old record to display.
It is interesting that in drop down list of SelectItem new value is shown as expected and even if I select that item from the list, display value of SelectItem goes back to old value.
Any help?
Thanks.
BR//Marije
Comment