Problems searching a repeater

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 :slight_smile:

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;
    });
}

Hello Amelia,

perhaps this one?

$w("#myRepeater").data = res.items;

Modify —> “myRepeater” to your own repeater-ID first!

That’s got rid of the error message so thank you! but now the repeater does show any data on the website preview probably not related though

Just tested it but when you search nothing filters, not sure if I’m missing something else

Please show your actual code.

Sorry just tested it again and its worked! Been at it since 10am so my brain is a little addled. Thanks so much!

:grin::wink: no problem.