Hello,
I’ve just discovered Corvid.
I try to create a “Brand’s Page” with a database, using a repeater. This part is OK.
Now, the different brands have categories like “Accessories”, “Shoes”, etc. I have a #repeaterButton in a repeater built with the database of the categories. Now, I would like to sort the #brandsRepeater when the user click on the button. The problem is that I can’t have each #repeaterButton.label because it’s in a repeater.
It works with a button # buttonAccessories outside a repeater :
Here is my code for that :
import wixData from "wix-data";
export function buttonAccessories_click(event) {
wixData.query("filtreChoix")
.contains("filtreProduit", $w("#buttonAccessories").label)
.find() // Run the query
.then(res => {
$w("#listRepeater").data = res.items;
});
}
It works with the #buttonAccessories outside the repeater. Is there a solution to make it work inside the repeater ? Because the Brand’ s book will increase in the time with more than 100 brands and categories too… So i need to have the label for the clicked button, but i can’t find how to do that.
Thanks for your help, and be forgiving please, I’m beginner, and french…
Marion.