Filtering clarifications [message #1786996] |
Thu, 17 May 2018 04:05 |
Sowmya Muniyappa Messages: 6 Registered: July 2017 |
Junior Member |
|
|
Hello ,
I am facing two issues with filtering below i am giving a brief description for it kindly help me out to resolve it:
1)We have 3 columns with only possible data being + and - .I have added a combo filter to filter + and - .Filter works fine when for below combinations:
a) +,+ and -
b) -,- and +
where as when i apply the below combinations it doesn't work:
c) -,+ and +
d) +,- and +
e) -,+ and -
f) +,- and -
(In other words i feel there is a issue with already applied filter data value)
screenshot1.GIF attached
Filter Configurations added is given below :
ICellEditor comboBoxCellEditor = new ComboBoxCellEditor(
Arrays.asList(PLUSMINUS.PLUS.getOperator(), PLUSMINUS.MINUS.getOperator()));
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor, DisplayMode.NORMAL,
FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 19);
configRegistry.registerConfigAttribute(FilterRowConfigAttributes.TEXT_MATCHING_MODE, TextMatchingMode.EXACT,
DisplayMode.NORMAL, FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 19);
comboBoxCellEditor = new ComboBoxCellEditor(Arrays.asList("+", "-"));
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor, DisplayMode.NORMAL,
FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 20);
ICellEditor comboBoxCellEditor1 = new ComboBoxCellEditor(
Arrays.asList(PLUSMINUS1.PLUS1.getPm1(), PLUSMINUS1.MINUS1.getPm1()));
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor1,
DisplayMode.NORMAL, FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 21);
configRegistry.registerConfigAttribute(FilterRowConfigAttributes.TEXT_MATCHING_MODE, TextMatchingMode.EXACT,
DisplayMode.NORMAL, FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 21);
2)I want to add custom filtering strategy along with the standard filtering support which comes from DefaultGlazedListsFilterStrategy how can that be achieved ?Firstly I want to understand is it possible if yes kindly clarify.
screenshot2.GIF attached
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04471 seconds