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:
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?
From this view, I’d like to be able to click on a location and navigate to a filtered list of Sub Locations linked to that Location. I tried to do this by creating a slice of the Sub Locations table with the following condition:
When I click on the action in the Locations list, it navigates to a list of the Sub Locations, but it is UNfiltered. For example, this is what is previewed when I click on “Basement”:
If my understanding is right, you are trying to get the list of sub location linked with the current row location. Data which should be shown is from Sub location table.
Remove the row filter condition in the slice. Use this expression in the linktofilteredview()