Query not Updating

Database & APIs

Hi, I'm trying to develop a ListView of items with a parent-child relationship.

I have one screen display a ListView of user owned 'tree' documents from an 'orchard' collection, and I've set-up a second screen to display another ListView of user owned items from an 'apple' Data Type stored in the 'tree' document.

First screen / query goes fine - I query the collection with a userID string to return the 'tree' documents for the user OK, then pass the selected Document Reference to the second page by a parameter passed using an action.

Second screen / query - Page contains a back end query of all 'tree' documents - filter by userID goes OK but I can't constrain the output by 'tree' document reference more than once (eg: if you go back to the 'tree' selection page an select a different 'tree') - the ListView only ever displays the first 'tree' selected, although this is not hard-coded. It's almost like the query isn't changing / is ignoring the 'tree' document reference passed, however the app is definitely passing the updated variables, just not filtering on it.

There's no errors / warnings, it's definitely me not understanding how the query/ListView works!

What have you tried so far?

Tried passing 'tree' document references as parameters from actions
Tried passing 'tree' document references as app state variables - strangely the filter doesn't let me filter using these either
Tried passing 'tree' document references as hard-coded variables

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply