Need help in populating the Listview

Troubleshooting


I have a page with a listview that needs to be filtered based off an ID that is being passed in from the referring page.

I may need to add additional IDs to the filter-by list based on the user's actions on the page, so I need to save this ID parameter to a Page State Variable and filter the list off the variable, not the parameter.

Currently I have an Action triggered on Page Load that sets a Page State Variable "id" using the Parameter.

I have my Supabase Query set up at the page level, filtered based off of my Page State Variable "ID". My listview is using this query's output to generate Children.

When I land on the page, the Listview is empty UNTIL I click somewhere on the page, at which time it populates correctly. It seems like the Listview is populating based off an empty page state variable BEFORE I'm able to write the ID parameter to the page state variable on page load?

Here is my current Action setup (see screenshots)

What have you tried so far?

I've tried to also add a "refresh database request" action targeting my listview on Page Load after writing the parameter to the page variable, but it didn't work.

Did you check FlutterFlow's Documentation for this topic?
No
2 replies