Page 1 of 1

Sheet: needs filterMatchMode

Posted: 11 Oct 2018, 17:33
by rbetjes
So I have a sheet with some columns that are of the dropdown type with selectItems created from a list of POJO's.
That means that the selectItems value will be (in my case) an int. This poses a problem with the filter as that is implemented with only a "contains" rule.
So filtering on the value 1 will return 1's but also 10's, 11's, and so on.

I was a bit suprised that no one needed different rules up until now.

I have already implemented a filterMatchMode attribute and it does the job. Possible math rules are: "startsWith", "endsWith", "contains" and "exact".
Would you like a PR for that?

Re: Sheet: needs filterMatchMode

Posted: 11 Oct 2018, 18:28
by Melloware
Yes please. No one happens to have asked for this yet.

Re: Sheet: needs filterMatchMode

Posted: 11 Oct 2018, 18:59
by rbetjes

Re: Sheet: needs filterMatchMode

Posted: 11 Oct 2018, 20:14
by Melloware
Nice sent you one minor code review comment to add to your PR and it will be good.