let SKU = $w( “#dbStyleItem” ).getCurrentItem().skuStyle;
console.log(SKU);
wixData.query( “Metals” )
.eq(“partDescrition”, “part name1”) //WORKS - field type Text
.eq ( “reffToStyle” , SKU) //NOT WORKING field type Reference
.find()
.then( (results) => {
$w( “#repeaterMetals” ).data = results.items;
} );
}
I’m trying to run query from dataset witch has reference field SKU to apply to my repeater.
What am I missing
Thank You