Linked List
How to configure linked lists through a List Details block.
As an example letโs say you want to show a main list of e.g. projects, and upon clicking on a specific project, you want to display this projectโs details, including this projectโs associated tasks. Hereโs how you can do it using Airtable data source as an example.
Setup
- Create a "Projects" table
- Create "Tasks" table to hold task-related data, including a field referencing the associated Project. It can be a Lookup field that looks up the Name field from the Projects table, but it can also be a regular field that contains the names of the projects, as in the example below.
Implementation
- On e.g. โProjectsโ page, add a List block linked to the Project Airtable table as shown below.
- On e.g. โProject detailsโ page, add a List Details block, again linked to the Projects Airtable table.
- On this detail page, add also a List block, linked to the Tasks Airtable table
Configuration
As soon as you add the Tasks list to the project's details page, you'll see that the Projects table's fields will start appearing inside Conditional Filters of the Tasks list block.
Using this, we can now set a condition to filter the Tasks list to show only the tasks that are associated with the project that's currently opened in the page. The condition will be set as shown below.
So, only the tasks for which the value in the Project column corresponds to the current project's Name will be shown.
Result
Let's check how that works for the Ad Campaign project that includes two tasks (assigned to steven@softr.io and joanne@softr.io).
That's it. Now, each project details page will also show all the tasks associated to it.
Last updated on July 25, 2024