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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anuar
    Junior Member
    • Jul 2020
    • 20

    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?
  • telecastg
    Active Community Member
    • Jun 2018
    • 907

    #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

    • anuar
      Junior Member
      • Jul 2020
      • 20

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

      Originally posted by telecastg
      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...