Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Looking for In Container.Filter?
Hi,
I'm looking for the In Container.Filter but am I right in saying that it doesn't exist?
I'd like to extract a certain set of records from a SQL Container TableQuery!
For example:
SELECT * FROM TABLENAME WHERE FIELDNAME IN ('1','2')
Regards,
Gerard
Hi,
how about using the com.vaadin.data.util.filter.Or to combine a couple of com.vaadin.data.util.filter.Compare.Equal filters?
-tepi
Actually it is possible to implement completely arbitrary "set filter" by creating Array of Or filters and using that as a Or filter in the Container. So put the values you want to filter in a set for example and iterate that to Array. Then finaly give that Array to constructor of new Or filter.
Hi,
Thanks for your replies!
Sorry for this somewhat delayed response!
The Or filter type is indeed an option, but I thought that maybe the In filter type also exists.
So, I'll implement the Or filter type in my application.
Regards,
Gerard