I Did it all… still don’t work ):
My code -
//קוד חיפוש חדש
let originalRows = [];
$w.onReady(function () {
$w(‘#dataset1’).onReady(() => {
originalRows = $w(‘#table2’).rows;
});
});
function filterTable() {
let newRows = originalRows;
const field = $w(‘#selection1’).value;
const location = $w(‘#selection6’).value;
if (field && field !== ‘כל המשרות’) {
newRows = newRows.filter(item => item.Field === field);
}
if (location && location !== ‘כל הארץ’) {
newRows = newRows.filter(item => item.positionLocation === location);
}
$w(‘#table2’).rows = newRows;
}
export function selection1(event) {
filterTable();
}
export function selection6(event) {
filterTable();
}