Case insensitive List filter/find

1
Hi there, Is there any known widget or method to use the “List Operation” in Mendix to do case insenstive comparisons? I find myself very often needing to find string items in lists but from my understanding the comparison that “Find/Filter” does on an attribute is case sensitive. I almost never require case sensitivity. Any ideas short of having to write a custom Java action? Thanks!
asked
2 answers
0

Depending on what the data is used for, you could consider using a toUpperCase() or toLowerCase() when saving the data so that you can always compare your lists. If it's something that's shown on the front end where you can predict where capital letters will be, you could then use styling to make sure they're still properly capitalized (e.g. by always capitalizing the first letter).

Of course this is only possible when you have data that's structured so that you either don't need capitalized letters, or they are always in the same place. If not, then this solution is useless and you're likely better off using a java action.

answered
0

Try MarketPlace's "ListUtils". It does not mention case-insensitivity, but maybe it does have that as an option.

answered