Hello everyone,
In my app, I have a lot of instances where users filter lists to include all list items that have a date from one selected date to another. One use case is where a user selects a start date and an end date of a “Pay Period” so that they can see their time cards submitted during that period. This seems hardly uncommon - seems like most of the “demo” apps are some version of a “trip planner” or “scheduler” that relies on filtering by dates and/or date ranges…
So as you all probably know, Adalo has built-in filtering for “Between” dates, but that filter EXCLUDES the 2 selected dates from the results. I can certainly see why this is that way, as “between” does not mean “between AND including”, but the fact is that when you ask a user to select a start date and an end date, they are assuming that their results will INCLUDE the start and end date. For instance, if I wanted to see all my time cards for last week, I’d probably select my start date as Monday, Feb 28, and my end date as Sunday March 6. I wouldn’t automatically think, OH, technically that period is actually “between” Sunday Feb 27 & Tuesday March 7, so I need to set those 2 dates as my start and end!.. ha.
There’s an obvious workaround to this with the new “Or” funtionality for filtering. However, that means I need to use 3 different filters: 1) “between” start and end date OR 2) “equals” start date OR 3) “equals” end date. This is OK, but it gets really cumbersome once you start adding multiple “AND” conditions to the filters. If your filter gets complicated, now you need to replicate that complicated filter 3 times per list. AND, if you have to have multiple different lists to allow for detailed searching/filtering based on user inputs, then it REALLY gets cumbersome.
For example, I have a project search functionality where I am allowing users to filter projects based on Project Stage, Project Type, Project Manager, Project Supervisor, and whether or not specialized equipment is required. With the way I have my DB setup, this requires 12 different lists each with 5 “AND” filter operators. That’s 60 Filters to set. If I wanted to add a date filter to this search that allowed users to select start and end period for project dates, then I’d have to add the 12 “AND” filters with “Between Dates” specified, but then I’d have to replicate the whole thing twice more per list to include the start date and the end date in the search results, so I’d need to manually create 144 more filters among all the lists to accomplish that simple task. That’s 216 filters in all just to effectively search a list on 6 possible parameters. God forbid I make an input error and have to file through all those lists looking for the mistake!
Does anyone know a shortcut? An easier way to get Adalo to return “Between AND Including” 2 selected dates? Again, I know why it’s set up that way, but fact is from a user perspective, when 2 dates are selected to create a date range, it’s assumed the returned range will INCLUDE the 2 selected dates, and I feel like Adalo should have a filter option to reflect that, to make it easier on us! It would be great to see an additional filter option like “From-To”, in addition to the existing “Between”, Before", “After”, and “Equal To”.
Anyway, if anyone’s got any insight, I’d greatly appreciate it.