Is it possible to use modaltableselect in the attach action?

I have a relationship manager and when I click on the attach action I want it to open a modalTableSelect and be able to choose multiple rows. Is it possible?
8 Replies
davie__1225
davie__12254w ago
Yes, it is possible. By default, AttachAction is designed for attaching one related record at a time (using a Select field). If you want a modal with a table where you can select multiple rows, you’ll need to customize it a bit.
Bruno Pereira
Bruno PereiraOP4w ago
Did you manage to make it work?
davie__1225
davie__12254w ago
Yes
Bruno Pereira
Bruno PereiraOP4w ago
Care to share the snippet of code?
BackDropGuy
BackDropGuy4w ago
Either I'm missing something, or you are looking for "->multipe()"
Bruno Pereira
Bruno PereiraOP4w ago
I already have a select with multiple() I want to use a new component modaltableselect to show the options as a table where you can use filters and such
BackDropGuy
BackDropGuy4w ago
Add multiple() to the ModalTableSelect::make(). Not the Select::make()
Bruno Pereira
Bruno PereiraOP4w ago
Gonna try that

Did you find this page helpful?