
How to filter a model based on multiple id's
Hi there,
I have a web page that displays a list of records based on a collection. I created a multi select filter that show/hide rows and this is working.
But now I have to filter the collection in the back-end. So for example: Select record where Id in ["1", "3", "5"].
I have managed to get the selected Id's into a collection/array, but how can I create the where .... in clause in Betty Blocks.
Thanks for help
Hi there,
I have a web page that displays a list of records based on a collection. I created a multi select filter that show/hide rows and this is working.
But now I have to filter the collection in the back-end. So for example: Select record where Id in ["1", "3", "5"].
I have managed to get the selected Id's into a collection/array, but how can I create the where .... in clause in Betty Blocks.
Thanks for help
-
I have the same issue but with Liquid that BettyBlocks uses. Jekyll's liquid has a "where" clause but the regular liquid syntax does not. Is it going to be implmenented anytime soon?