Populate container list view tables with data matching on container-specific IDs

I am trying to populate tables within a container list view, where each container-specific table shows some data matching on the container id (in this case, the file id for a Retool Storage file).

When I create a query to populate these tables, I transform/filter the results to match on this fileid. Instead of seeing results in each table matching on its parent container's id, I see the same results in every listed table. Not sure how to construct the query in such a way that it's delivering back container-specific results.

1 Like

Hi there, I think the listview component isn't quite meant to be used in this way. The listview component simply iterates over data that it's given (e.g., whatever you put in its "data source" property), rather than re-running a query to generate each item based on a parameter. There are probably a couple different ways to achieve what you're looking for, but my sense is the "key value" component might be a better solution for your case than the table component. Depending on how your data is structured, you may be able to connect the listview to your query (e.g., {{ query4.data }} ) and then simply use "item" as the data source for the "key value" component

1 Like

Thank you! I ended up passing the data into the listview for each item object and that worked find.

3 Likes