Sitemap
filtering relations

Filtering relations in

To avoid showing categories that has no products

--

Have you ever looked at a list of products or services, only to find an enticing category that, upon closer inspection, has nothing actually available today? Perhaps all its items are backordered, or in our specific case, scheduled for future release. It’s a frustrating user experience and, for the platform owner, a missed opportunity to present relevant information.

Press enter or click to view image in full size
the base table we reference in our set up

In the world of

, we often manage complex data, from resource bookings to product inventories. A core challenge arises when we want to display categories or groupings only if there’s at least one item within them that is genuinely accessible right now. We recently tackled this exact problem with a resource management table, where certain categories (like “Apartments”) only had resources with a future “effective date.” While these resources existed in our database, they weren’t yet bookable. The goal? To dynamically hide these unavailable categories, ensuring our users only see what they can truly interact with today.

--

--

No responses yet