import wixData from ‘wix-data’ ;
export function button5_click(event, $w) {
$w( “#dynamicDataset” ).setFilter(wixData.filter())
.eq( “dropdownField” , $w( ‘#dropdown1’ ).value)
.then((results) => {
$w( ‘#listRepeater’ ).data = results.items;
});
$w( ‘#listRepeater’ ).expand();
}
if you are complaining " .then((results) => { …});" not working, you probably need to insert the following before the code:
.then((resolve, rejected)=>{
let count = $w("# dynamicDataset “).getTotalCount();
$w(”# dynamicDataset ").getItems(0, count)
.then((results) => {
resolve (results)
})
Hi a_b
I think the problems lies with your filter. You have this
$w( " #dynamicDataset " ).setFilter(wixData.filter())
And then you do .eq()
But yhe .eq() should be behind wixData.filter() not behind setFilter(wixData.filter()) so you have 1 “)” to much there
Kind regards
Kristod.