Reload/refresh from a View

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sttn
    Member
    • Apr 2020
    • 33

    #1

    Reload/refresh from a View

    How can I actualise a sub-view, when I make make a change at this view outside the parent view. In this example, I add a document in a modal dialog and will refresh the view when the modal dialog ends.
    I try the "reRender" function in the view, but i find no way to get the key from the view.

    Click image for larger version

Name:	image.png
Views:	7
Size:	19.3 KB
ID:	117562

  • yuri
    Member
    • Mar 2014
    • 8926

    #2
    You need to pass the model to your view (or to where the logic happens). And call the fetch method on it.

    Code:
    model.fetch();
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • sttn
      Member
      • Apr 2020
      • 33

      #3
      Thank you, it works great!

      Comment

      Working...