Hi Guys,
I created a dynamic page and used a table list to display a list of items.
I added a combo box to filter the items as per tutorial on this site and it worked perfectly.
I decided to change the table to a repeater to have better looking list and found that my filter function now has an error where I apply setFilter to the repeater.
function filter(category) {
if (lastFilterCategory !== category) {
let newFilter = wixData.filter();
if (category)
newFilter = newFilter.contains(‘category’, category);
$w(“#repeaterBooks”).setFilter(newFilter); // this line produces error - setFilter not defined //
lastFilterCategory = category;
}
}
Note the initial display of items work, but as soon as a filter is applied, I get the error
Any ideas why this is happening with a repeater and not a table listing?
#repeater, #dynamic_pages, #setFilter, #setFilter_not_defined, #error, #SmilinGoat