LGPL version 3.0p;
I want to use a ComboBoxItem as filterEditor for a field in a listGrid. Following the example everything works fine. But the problem is that the displayfieldnames should equal.
For example (this works):
What I want to achieve is:
The criteria should contain "typeId equals 10", instead of "typeName startsWith something"
First (and most important reason is):
There could be more then one reference to the ItemDS. lets say item1, item2 and item3. In the example use case, ItemDS should contain 2 extra fields, itemName2 and itemName3.
Second: I want to filter on the ID value instead of the joined field.
Is this possible? The default SelectItem filterEditor works fine and as expected. When I add the comboxItem as filterEditorType, it sends the DIsplayField name of ComboBoxItem in the criteria. This is not as expected.
I want to use a ComboBoxItem as filterEditor for a field in a listGrid. Following the example everything works fine. But the problem is that the displayfieldnames should equal.
For example (this works):
Code:
ListGridField field = new ListGridField("typeId"); field.setDisplayField("typeName"); fieldsetFilterEditorType(new ComboBoxItem()); FormItem formItem = new FormItem(){{ setOptionDataSource(itemDS); setDisplayField("typeName"); }}; field.setFilterEditorProperties(formItem);
Code:
ListGridField field = new ListGridField("typeId"); field.setDisplayField("typeName"); fieldsetFilterEditorType(new ComboBoxItem()); FormItem formItem = new FormItem(){{ setOptionDataSource(itemDS); setValueField("ID"); setDisplayField("name"); }}; field.setFilterEditorProperties(formItem);
First (and most important reason is):
There could be more then one reference to the ItemDS. lets say item1, item2 and item3. In the example use case, ItemDS should contain 2 extra fields, itemName2 and itemName3.
Second: I want to filter on the ID value instead of the joined field.
Is this possible? The default SelectItem filterEditor works fine and as expected. When I add the comboxItem as filterEditorType, it sends the DIsplayField name of ComboBoxItem in the criteria. This is not as expected.
Comment