-
Client Class:
PoC Class:
PocTable Class:
I can't figure out how to display many-to-many relationship. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I managed to display it by using label with view method:
View:
Down side is it's not searchable nor sortable. |
Beta Was this translation helpful? Give feedback.
-
Hello, I was able to adapt this to my table so I basically have a colum from a many-to-many relation. But the code for implementing 'searchable' does not work for me; I get the error: Another thing I am looking for is to restrict the relation. My pivot table has start- end enddates for the relation, and I only want to show the related entries that are inside the valid date. Could you kindly give me a hint? Thanks! Kind regards, |
Beta Was this translation helpful? Give feedback.
If you want it sortable/searchable, then you'd need to use a callback in the searchable/sortable function, for example the below is a good jumping off point for you: