Announcement

Collapse
No announcement yet.

How can I trigger a View refresh from AfterRelate or AfterSave hook?

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

  • How can I trigger a View refresh from AfterRelate or AfterSave hook?

    In a custom module, I have an AfterRelate hook on an existing entity.

    In this hook, I perform some validations, which can result in either change in value of some fields or undoing of the just saved relationship.

    In both of these cases, the frontend View of the Entity becomes outdated and needs to be refreshed.

    If I throw an Error or Conflict exception, it will display an Error Message in UI but the View is not refreshed.

    Is there any way to cause the front-end View to be refreshed from the backend code in the Hook?​

  • #2
    Did you manage to solve this ?

    kind to want to update my view after some calculations on a hook

    Comment

    Working...
    X