Joseph Pollone
ยทI push pixels because that's what heroes do.

Supabase ChoiceChip filters as my list view filter; slight issue with initial selection

Resolved

Since I'm all by myself in my home office (well, with a nice glass of Basil Hayden's and two dogs), will you please have a look at my logic for making my own list view filter with Supabase?

Here's what I've done

  1. Created a custom action that runs on page load to set the page state variable availableViewFilterDisplayName and selectedViewFilterDisplayNames (both List<String>) with all possible options

  2. Made ChoiceChips with the options defined and initially selected as the availableViewFilterDisplayName. ChoiceChips don't have an 'options' value like dropdowns, so I just use Display Name.

The slight issue.

The options appear as an option to choose, but Initially Selected are not set from the PSVs.

However, if I add strings into Initially Selected, they are selected appropriately.

What am I doing wrong with my List<String> and Initially Selected?

I'm not showing the list view, but it works well when I set the query filter to use selectedViewFilterDisplayNames.

4 replies