Create a default filter value

The simplest solution would be to generate the same function like RESET, when choosing —> ALLE <—

How to RESET a filter running on a DATASET ?

You already have it inside your code…

let filter = wixData.filter(); $w('#'+dataset).setFilter(filter);

Now you only need to teach your code to start the reset when dropdown has changed to → ALL <----

$w('#'+ddn ).onChange((event)=>{console.log('Dropdown has been changed');
   // running IF-ELSE-CONDITION to check if ....
    // a) Dropdown-Label is --> 'ALLE' ???
    // b) Dropdown-Value is --> 'ALLE' ???
    // c) Drodown-Selected-Index is --> 0 ???

    // Choose the right one (multiple solutions possible).
    // If condition = TRUE ???? --> To do what?
    // else doing what?


    if(...) {.......... do what? ......}
   else {......... do what ?......}
});

If condition = TRUE —> let filter = wixData.filter(); $w(‘#’+dataset).setFilter(filter);