Filter table by relationship key #14644
Unanswered
timmehrees
asked this question in
Help
Replies: 1 comment 2 replies
-
Hey @timmehrees, A few questions for you on this.
Below is how I've set up my table filters to get all users from a department. Here is the filter setup that pulls back all employees based on department. I've manually entered the data here. We can take this one setup further if you'd like a more dynamic approach.
The table still has its crud functionality as well. I hope this helps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
After a number of hours searching, and testing - I'm going to ask this one and hope it isn't answered elsewhere and I'm blind....
I am trying to create an editable table which only displays the records relating to another table, for example I am trying to show all of the order records related to one customer in table form, AND have it editable.
I can view all of the records in table form (through data providers and repeater) but cannot edit it.
I can achieve this by using the same set up, but instead of the table have form fields, having the fields default to the current value and having to save each line with a button - but this is extremely clunky.
I have tried to have a table show all of the records from the "order" table and filter by the relationship key/foreign key - however this always returns all of the records (even though I can see the correct data in the foreign key field in the database natively). This should be the most simple, but doesn't work. I can filter by any other field, so I assume this is to do with the relationship.
Any help or pointers would be great at this stage.
Budibase: 2.32.6
Database: MySQL 9 (latest docker version)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions