afterRead hooks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ManicMiner
    Junior Member
    • Nov 2019
    • 13

    afterRead hooks?

    Just need to perform some calculations to show in non-dabatase fields, just after read the entity. I know that constructing a custom-view could be a solution, but for my needs, it's more easy and convenient use a small piece of code attached to the hook.

    Whitch could be the best HOOK to use for?

    Why don't you implement a full CRUD set of hooks?

    Refards
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    You need to inherit this method in the service class https://github.com/espocrm/espocrm/b...ecord.php#L305
    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

    • Andorxor
      Member
      • May 2019
      • 65

      #3
      Or overwrite actionRead in the controller

      Comment

      • ManicMiner
        Junior Member
        • Nov 2019
        • 13

        #4
        Thanks, both sollution are suitable ...

        Comment

        Working...