Update relationship manager table when edit a record
On my payment edit page I have a Relationship Manager to list all my transactions, when I edit this page I add a new transaction, but my Relationship Table does not update, how to can solve it?
8 Replies
How are you adding the new transaction? Through a normal CreateAction on the RM headerActions()?
Im using
beforeSave()
method on the Edit Page from my PaymentIn that case, you'll probably need to dispatch a refresh event. Although tbh I'm not sure if that still works the same way in v3.
Idea being, in the ListFoo page add a listener ...
... and then dispatch it from your beforeSave() function ...
... but I haven't tried this in a v3 admin panel yet.
YourRelationManager.php
Is this correct @leandro_ferreira ?
on my edit I put it on beforeSave() method
Worked?
unfortunately it didn't work 😦
Nothing happens when I edit the record
But isn't ListFoo the actual component that renders the list?