I apologise if this seems basic, but this has been eluding me for a few hours of trying different approaches.
I have a datasource which contains an ID field, lets call it FieldA. This is shown in a grid, where I use an optionDataSource to map ID -> Name.
I want the FilterEditor to show above, as it does in other tables, and allow the user to filter on the values that are shown in FieldA - that is to say, the Name values. I don't want to filter on ID - the ID values are hidden to the user.
Issue 1) The default FilterEditor behaviour is to show a SelectItem. I can fix this by manually setting the filterEditor to a TextItem. But...
Issue 2) It does not filter on the Name - it's actually doing the filter by the ID value. Of course this makes sense to me and you as programmers, but the user sees the Name and wants to filter substring matches on Name.
How do I implement this correctly?
I realize I could make the field show Name instead of ID -> Name, but that screws up the optionDataSource select item in the grid - which works fine.
I have a datasource which contains an ID field, lets call it FieldA. This is shown in a grid, where I use an optionDataSource to map ID -> Name.
I want the FilterEditor to show above, as it does in other tables, and allow the user to filter on the values that are shown in FieldA - that is to say, the Name values. I don't want to filter on ID - the ID values are hidden to the user.
Issue 1) The default FilterEditor behaviour is to show a SelectItem. I can fix this by manually setting the filterEditor to a TextItem. But...
Issue 2) It does not filter on the Name - it's actually doing the filter by the ID value. Of course this makes sense to me and you as programmers, but the user sees the Name and wants to filter substring matches on Name.
How do I implement this correctly?
I realize I could make the field show Name instead of ID -> Name, but that screws up the optionDataSource select item in the grid - which works fine.
Comment