I’m trying to create a table or a list to display my rental houses. I would like the tenant candidates to be able to sort or filter the houses. For example if he would like to see only houses that rent for less than 1000 €. Or houses that are located in London only.
This would also work if he could sort the houses alphabetically. It would be enough to be able to sort the list from cheapest to the most expensive one.
I have created a database and dataset and linked them to a repeater, but I don’t know how to let the user filter/sort the data he sees.
Is either one of these options possible to do without coding? If coding is required, can someone give me a code that I can copy paste?
I think constant sorting option is enough for my need.
I actually have added Dataset sorting just like in your screenshot, but it doesn’t show up when I preview the site. I also added a button and linked it to the Dataset, but the button can only be linked to Next Item, Previous Item, Next Page etc. Should it have A->Z option as well? Or how do I create the actual sorting option for the end user?
Also Dataset Settings only shows sorting option but no filtering. Should I change a setting somewhere to have filtering option?
Hi! Yes it should be all matching values. That mean that you either didn’t sync or set up smth wrong
Can you please share a link to your site? I can check
Found the problem. This feature doesn’t compare everything
It compares with CURRENT item in ArrivalsDB dataset. This means that if you add actions next-previous on that DS (by which you filter), you will see different values, because item BY WHICH you filter - will change
I’m not sire how to solve your problem without code…
No, because dataset chooses what to show based on “who is asking”. If it’s table - shows all. If it’s usual text box - shows only one item at a time.
In this case, this is just by design - this feature is mostly for creating filters.
About spport articles - no, there is no such example. You need to use wixData.query to get all items from 2 collections and then compare them, one by one…