Hello!
I set up buttons to filter my database on ‘homie’ page
and i used this format for each related button:
for filter:
export function buttonName_onClick() {
$w(‘#dataset1’).setFilter( wixData.filter().eq(‘field’, ‘string’) );
}
and for sort:
export function endingButton_onClick() {
$w(‘#dataset1’).setSort( wixData.sort()
.ascending(‘field’) );
}
The field name i use in all filterings is the same and it is ‘sector’ and i currently have 3 items on my database which are ‘Gaming’ - ‘Technology’ - ‘Data Processing’
only Gaming is working the others are not working. Why is this happening how can i fix this?
Thank you!