Supabase table values to App State variables On Page Load action

Hi to all,

I have created a Supabase table with three fields (userId, UserName, UserPass) and three AppState variables with the same names (userId, UserName, UserPass). I am doing some practises (new with Flutterflow).

From one page, I created a button with two actions, first action is "Update App State -> Set Fields" in order to pass two values from two "TextFields" widgets and store them in two AppState variables (UserName, UserPass), and second action is "Navigate To" the second page.

In the second page I created a "Backend Query" to the Supabase table filtering by the AppState variables (UserName, UserPass). I would like to store in the AppState variable (UserId) the Supabase field (userId) by creating an action "On Page Load" but in "Update App State -> Set Fields" I cannot find the Supbase row source.

I created the same action in a widget, not in the page, by a "On Tap" action, and there is not a problem at all, but you have to "tap" (of course) the widget in order to store the Supabase field value to the AppState variable. I have tried to find a solution, google it, etc... but cannot find a solution for this. Any idea or suggestion about how to solve this? Find some screen captures for your reference.

Thank you in advance, let me know if you need extra information.

Eduardo

6
15 replies