Hi guys!
I have a FormItem on a DynamicForm and I've set it with the following editorType:
I would like to show a different value to the user when the formitem has the focus.
The problem is that this value formatter is only called on a redraw.
How can this case be solved without a redraw?
Thank you in advance for any help you can provide.
I have a FormItem on a DynamicForm and I've set it with the following editorType:
Code:
public class CustomEditorType extends TextItem {
public CustomEditorType() {
super();
this.setEditorValueFormatter(new FormItemValueFormatter() {
public String formatValue(Object value, Record record, DynamicForm form, FormItem item) {
boolean hasFocusInOurApp = item.getShowIcons();
if (hasFocusInOurApp) {
return "1";
} else {
return "2";
}
}
});
}
}
The problem is that this value formatter is only called on a redraw.
How can this case be solved without a redraw?
Thank you in advance for any help you can provide.
Comment