Announcement

Collapse
No announcement yet.

How to refresh front-end after script is run by flowchart

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

  • How to refresh front-end after script is run by flowchart

    For example lets you have Contact and after updating a related record it runs a flowchart and updates a field in Contact. How to refresh the front-end to let the changes show?

  • #2
    Backbone.js which is the framework on which Espo is based, specifies that a view's DOM element be re-rendered when its bound model or collection are updated, thus the Contact front end should update itself after a workflow triggered change, which is actualy a hook execution.

    If that is not the case and you are looking for a coding solution, you could then use a dynamic handler https://docs.espocrm.com/development/dynamic-handler/ to trigger a this.recordView.reRender() action when a field in the current model is updated.
    Last edited by telecastg; 11-21-2022, 11:33 PM.

    Comment


    • #3
      Thank you for your response. Is there an example using this.recordView.reRender() like the link you send me?

      Originally posted by telecastg View Post
      Backbone.js which is the framework on which Espo is based, specifies that a view's DOM element be re-rendered when its bound model or collection are updated, thus the Contact front end should update itself after a workflow triggered change, which is actualy a hook execution.

      If that is not the case and you are looking for a coding solution, you could then use a dynamic handler https://docs.espocrm.com/development/dynamic-handler/ to trigger a this.recordView.reRender() action when a field in the current model is updated.

      Comment

      Working...
      X