I have written this code for searching the item that matches the specified orderID.
I am getting this error and I am unable to understand where I am going wrong. It would be great if I get some help as this is my college assignment. I’ll attach two snapshots.
function search () {
wixData.query('#thisDataset') //thisDataset is name of my dataset on this page
.contains('orderID',$w("#OrderID").text) //orderID is text field name contaning orderID
.or(wixData.query('#thisDataset').eq('number', $w("#OrderID").text))
.find()
.then(res => {
console(res);
$w('#text7').text= res.items; //printing my result just to check of its working
});
}