I have a selectItem with valueField, displayField and optionDataSource definied. Because of lags in connection with server side, I observed that selectItem is shown first with value from valueField and after the fetch on optionDataSource is completed, the value from displayField is used. Sometimes user has to wait a few seconds and is confused.
I found a FormItemValueFormatter object, which I can attach to my selectItem. But the signature of method
is in my opinion insufficient.
In this method, first I've got a value from valueField and, in second invocation, from displayField, which suits to the workflow described above. The thing is, I am not able to determine the value in formatValue method come from valueField or displayField.
Can You provide any solution?
I found a FormItemValueFormatter object, which I can attach to my selectItem. But the signature of method
Code:
String formatValue(Object value, Record record, DynamicForm form, FormItem item)
In this method, first I've got a value from valueField and, in second invocation, from displayField, which suits to the workflow described above. The thing is, I am not able to determine the value in formatValue method come from valueField or displayField.
Can You provide any solution?
Comment