Hi guys,
I have a real estate website and I’ve done a filter which sorts the properties by type, genre and zone. I used the code from below. But I have a new database for the zones and now I have the zone field from my properties database as a multiple reference. How can I sort the properties by the zones with a fieldkey from zone database
$w("#dataset5").setFilter(wixData.filter()
.contains("inchiriereVanzare", $w('#tipvanzare').value)
.contains("zona", $w('#zona').value)
.contains("tip", $w('#tippropietate').value))
.then((results) =>
{
console.log("Dataset is now Filtered");
$w("#repeater1").data = results.items;
})
.catch((err) => {
console.log(err);
});
$w("#repeater1").expand();