Hi.
I have a table with pagination. Whenever I navigate to page 2 and do a filter and the table will show blank. It doesn't have any issue when filtering on other pages.
Is there any way to force the table to go back to page 1? My website : https://www.dwellintern.com/InternshipListings
My code :
export function searchButton_onClick() {
//Add your code for this event here:
let filterText = $w('#dropdown4').value;
let filterText2 = $w('#input13').value;
let filterText3 = $w('#dropdown5').value
let filterText4 = $w('#input14').value
console.log("F1=" + filterText);
console.log("F2=" + filterText2);
console.log("F3=" + filterText3);
console.log("F4=" + filterText4);
$w('#datasetJobApplication').setFilter(wixData.filter()
.contains('dropdownField',filterText)
.contains('position2',filterText2)
.contains('position',filterText3)
.contains('firstName',filterText4)
)
.then( () => {
console.log("Filter successfully.");
console.log($w('#datasetJobApplication').getTotalCount());
$w("#table1").refresh();
})
.catch( (err) => {
console.log("setFilter error encountered, err="+err);
});
}
I would look at making your table the exact height to begin with so that you do not get any scroll bars on the side of it.
What are you using to switch trough pages?
Can you show that functionality?