I am a beginner at coding and have learned a lot from this forum. Hope you can help me with this:
I would like to search multiple columns in a database. I have found this link , but it only explains how to search one column.
This is my current code:
import wixData from "wix-data";
let debounceTimer;
export function SearchBox_keyPress(event, $w)
{ if (debounceTimer) { clearTimeout(debounceTimer); debounceTimer = undefined; }
debounceTimer = setTimeout(() => {
filter($w('#SearchBox').value, ); }, 500); } function filter(title) {
$w('#dataset1').setFilter(wixData.filter().contains('title', title)) }
All help is appreciated.
Thank you very much.