Hi Jessica, What you could do is creating a non persistable (search) entity with a reference to the Category entity.
Pressing the button should create the search object and open a pop up page. Via a reference selector, you will be able to select a category. In this pop up page, you can add a button that has a similar logic as your Random selection, but you now include the selected category object in your query.
Hope this helps.
Hello,
It sounds like you already have the random selection working well. To add category filtering, you can create a simple pop-up window or a modal instead of opening a completely new page. In that pop-up, add buttons or a dropdown list for categories such as card, board, or dice. When the user selects a category, filter the datagrid based on that choice, then run your random selection method on the filtered list only. Make sure your page navigation and data context are set correctly to avoid errors. Platforms like Sikkim Login Game also use simple filtering systems for a smooth user experience.
Absolutely love the idea of a game selection app. For the Tiranga Game, having a dedicated page to filter the datagrid would be a game-changer. Users could easily find their favourite colour prediction games, making it super convenient to dive into the action and start earning money online. Tiranga game register now, because this feature not only enhances user experience but also boosts engagement—let's make those winning predictions even easier to access. Don't miss out on this opportunity to elevate your gaming platform.