I have set up some code to search through my online database which works fine when I use a table, however, when I use a repeater to search through the code is showing as incorrect. The problem being the .rows at the end (I have included the code below)
Does anyone know what I should be putting in instead of rows? Up until this point, the search has worked perfectly.
Thanks in advance
import {local} from 'wix-storage';
import wixData from 'wix-data';
export function searchBar_keyPress(event) {
search();
}
function search() {
wixData.query('multiStepRegistrationForm')
.contains('dropdownField', $w("#searchBar").value)
.or(wixData.query('multiStepRegistrationForm').contains('firstName', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('copyOfEmail', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('dropdownField', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('copyOfCompanyWebsite', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField2', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField3', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('shortTextField', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField7', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField6', $w("#searchBar").value))
.or(wixData.query('multiStepRegistrationForm').contains('multiCheckboxField5', $w("#searchBar").value))
.find()
.then(res => {
$w('#resultsTable').rows = res.items;
});
}