A button to precalculate all formula fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkvartal
    Junior Member
    • Jan 2020
    • 16

    A button to precalculate all formula fields

    Its will be very useful to have ability to calculate all fields which set with formula when a user creating new object. A button "Recalculate" near Save and Cancel buttons for example
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    There's no point in this. When a record is created, formula is calculated upon creation. Before record is created, it's not possible to calculate anything.
    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

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #3
      perhaps something you could use: https://forum.espocrm.com/forum/gene...las-by-formula

      Comment

      • telecastg
        Active Community Member
        • Jun 2018
        • 907

        #4
        Formula is a "user friendly" way to create back end hooks without regular php coding, so as yuri explained, it requires a record to exist.

        If you are looking for a way to use calculated fields before a record exists you could create a dynamic handler for the entity and write your computation logic there instead of using formula.

        You can learn about the dynamic handler class in these posts:



        https://forum.espocrm.com/forum/deve...gic-conditions
        Last edited by telecastg; 02-24-2021, 05:55 PM.

        Comment

        Working...