Rome
Show relation manager of a relation manager in same view
Well. In the modal I would need to create new sales related to the element, edit current ones and also they had two custom actions buttons. So I think I would need to do all the logic manually without filament provided functions, right? So I think that's not a simple table.
Maybe the first solution would be better, extending the page. Could you tell me which section of the livewire/filament documentation I should start looking at?
Again, thanks a lot!!
14 replies
Show relation manager of a relation manager in same view
I will try to explain better, its easy.
In my app I have companys (this companys are gas stations). Each gas station has different elements (many to many). So I have a relation manager in the company resource with those elements (IMAGE1). Those elements, in turn, have product sales (another many to many). So on the elements resource page I have another relation manager (IMAGE2). Up to here everything is fine.
To view each element product sales, I have to click on each element in the company resource page and it redirects to element resource page with their products in the relation manager. What I need is to avoid that extra step to view those products. So, when I click on an element in the company resource page, would like to load that products on the same page (IMAGE1) (maybe under the relation manager table or... in a modal?). How could I achieve this?
Thanks a lot.
14 replies
Show relation manager of a relation manager in same view
Well, its not necessarily needed to embed RM, would be resource page + relation manager (after all its a link, right?). That's what you mean?
And in the other hand, if I want to make a custom view that when a action is clicked just print relation (manually), is there any documentation?
Thanks a lot!
14 replies
Show relation manager of a relation manager in same view
Thanks for you response.
What I need is when I click a row in the first image (or the button Test) load under the table the other relation manager. I mean, load the relation without changing the web page. I understand that I should create a custom view for that, right? But I don't know where to start...
Or maybe instead custom view it would be viable to embed his relation manager on a modal? What do you think?
14 replies
How do you delete a PDF file from storage after the Edit.(only changing the FileUpload)
You can customize the edit action, so after updating you can delete old storage file
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/edit#lifecycle-hooks
7 replies