-
Hello guys! I've exhausted my attempts to figure out how to solve a functional requirement on my own. This is the requirement:
My problem: I've exhausted my attempts to figure out how to solve a functional requirement on my own. This is the requirement:
My problem:
Could someone guide me? Grateful |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
hey @Bitello I built an example of this for you: In order to enable this sort of filtering with Budibase DB relationships, you need to create an extra column on each child table that holds the _id of the related parent row. This is done by adding using a static formula that returns the _id from the relationship column like so: In this example my table A is Employees, my table B is Jobs and my table C is Subtasks. In the above screenshot this is showing a static formula column I set up in my Jobs table which returns the Employee _id for each job. I can then filter my columns using this value. I'm using standard table blocks and then adding an action on row click to set the selected row _id to the state. I then use that value from state to filter the data on the table below. three tables-export-1671109053798.tar.gz I might have missed something here in my explanation so if there's anything that's unclear let me know! I've also attached the app export for you to try out and have a closer look. I hope this is helpful for you! 😊 |
Beta Was this translation helpful? Give feedback.
-
Hey, @andz-bb Thanks for the solution, it was exactly what I was looking for. But I still have a problem... Loading your solution file, it works perfectly. The keys appear in your application: In my app, there are no options for keys: I created a new application, with only two tables, summarizing your example, and still, it didn't work. I tested it in a Windows 10 environment, also using docker-compose, and the result was the same. Can you help me understand where I'm going wrong? I am attaching my test application. |
Beta Was this translation helpful? Give feedback.
-
Fantastic!!! Santa Claus exists! These actions are very powerful! However... I am using a Postgres database and when I try to create a new column of the Formula type I am not presented with the "Formula type" combobox (in BudiDB it is presented) Also, I can't, in the same way shown in your solution with BudiDB, assign the _id of the row to the formula Is the given solution restricted to using BudiDB? |
Beta Was this translation helpful? Give feedback.
-
Worked perfectly! Thank you very much! This solution will be very helpful! |
Beta Was this translation helpful? Give feedback.
hey @Bitello
I built an example of this for you:
In order to enable this sort of filtering with Budibase DB relationships, you need to create an extra column on each child table that holds the _id of the related parent row. This is done by adding using a static formula that returns the _id from the relationship column like so:
In this example my table A is Employees, my table B is Jobs and my table C is Subtasks. In the above screenshot this is showing a static formula column I set up in my Jobs table which returns the Employee _id for each job. I can then filter my columns using this value.
I'm using standard table blocks and then adding an action on row click to set the selected row _…