Hi everyone, sorry for bother and for my English.
I need some help.
I have a page with repeater and I added filters to that. Now I wanted to add a filter to the #dataset1. its ok but the problem is when I start typing the filter that I added to the #dataset1 stop working. I would like to know how to do to use both filter at the same time because I don’t want to show all items of my database
I leave my code here. Thank you so much.
import wixData from ‘wix-data’;
let debounceTimer;
export function iTitle_keyPress(event) {
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout(() => {
filter($w(‘#iTitle’).value);
}, 200);
}
let lastfilterTitle;
function filter(title) {
if (lastfilterTitle !== title) {
$w(‘#dataset1’).setFilter(wixData.filter().contains(‘expAnteriores’, title)
.or(wixData.filter().contains(‘expPreviasRubros’, title)));
lastfilterTitle = title;
}
}