Hello. I'm creating a home inventory. I have a table called "Rooms" with a column called "Location." Rows in this table are things like "Basement" and "Living Room."
I have another table called Sub Locations. This has rows with names such as "Shelf A2" and "Bin 1." It has a column that references the "Rooms" table so that each sub location is tied to a location.
From my view of the "Rooms" table in the app, I want to be able to click on a Location (such as "basement") and navigate to a filtered list of Sub Locations in which the Location matches what the user has clicked on.
I created a slice that I think should accomplish this:
I then created a view for this slice and an action to go to this view when a location in the "Rooms" view is clicked:
In the preview, the action appears to work correctly, however the list is never correctly filtered. It shows the full list of sublocations. I feel like I'm getting something very basic wrong. Any idea what I should be doing differently?
User | Count |
---|---|
15 | |
12 | |
9 | |
8 | |
4 |