Hi,
I use locales in order to display number values in specific formats. It works fine except when setting filter expression.
The decimal separator for a given local is comma. If I enter that as an input, it works but got translated as dot (as depicted).
I tried to customise that via custom formatters and filtereditorproperties as shown but the particular column seems to be ignored.
Any clue would be appreciated.
Many thanks
Petr
I use locales in order to display number values in specific formats. It works fine except when setting filter expression.
The decimal separator for a given local is comma. If I enter that as an input, it works but got translated as dot (as depicted).
I tried to customise that via custom formatters and filtereditorproperties as shown but the particular column seems to be ignored.
Any clue would be appreciated.
Many thanks
Petr
Code:
ListGridField lgf = new ListGridField(dsField.getName()); FormItem editor = new FormItem(); editor.setEditorValueFormatter(new FormItemValueFormatter() { @Override public String formatValue(Object value, Record record, DynamicForm form, FormItem item) { /// does not get here } }); editor.setValueFormatter(new FormItemValueFormatter() { @Override public String formatValue(Object o, Record record, DynamicForm dynamicForm, FormItem formItem) { /// does not get here return null; } }); lgf.setFilterEditorProperties(editor);
Comment