ViewAction::Make() in users list to show transactions of a user

I have a TransactionsResource in which every transaction of a user is logged. Now i want a button to see every transaction of this user in a modal window. How will I implement this?
9 Replies
TheSoulrester
TheSoulresterOPβ€’2mo ago
I have these two tables
No description
No description
TheSoulrester
TheSoulresterOPβ€’2mo ago
Thanks for this... I didn't find this. My UserResource and Transaction is => Files I registered the View in the TransactionResource. But I dont know how to open the View in a Modal to show every transaction of the specific user_id
TheSoulrester
TheSoulresterOPβ€’2mo ago
I don't know if "Modal" is the right I want. I want to show every transaction of the user in a new popup-window in the UserTable when I click on the action "show transactions" I hope you know what I mean
TheSoulrester
TheSoulresterOPβ€’2mo ago
ok, i added a relation manager to my users list. nice to have. but now, I want this table in a modal window with an action πŸ˜„
No description
dissto
disstoβ€’2mo ago
Though this is certainly possible. But it may be worth looking into combining the relation manager tabs with the form first. As this is built in and comes with no extra work. Im assuming that you just want to encapsulate the actual action (showing the transactions) from watching the record and scrolling down.
Hung Thai
Hung Thaiβ€’2mo ago
If your dont create an action, how can you open the modal? You need to create a custom action for your User list table/record, loaded it with your relationship (HasMany) to show the correct table/form/infolist in a modal if that's all you want. There's no other way around this modal requirement if you're using Filament only.
TheSoulrester
TheSoulresterOPβ€’2mo ago
a friend helped me. Now i added a livewire table
No description
Want results from more Discord servers?
Add your server