Announcement

Collapse
No announcement yet.

How to refresh all bottom panels after adding new record in one of them?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to refresh all bottom panels after adding new record in one of them?

    Hi. I have 2 bottom panels in my Account. One with Services records and a second one with Payments records. I created a hook in Service to automatically create Payment after creating a new service. And it works fine, but after creating a new service UI updates only in Services bottom panel. Payments panel doesn't update. After refreshing a page the new payment displays as it needs to be. Can I force refresh Account UI after creating new related records? I tried to save Account entity after creating new Payment
    PHP Code:
    $this->getEntityManager()->saveEntity($account); 
    but it still requires to refresh the page to see changes
    Last edited by dkvartal; 03-05-2021, 11:16 AM.

  • #2
    You have to trigger an event on frontend or load view/parentView and use reRender() method.

    Comment

    Working...
    X