This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PROPERTY CALCULATOR

I noticed a cool new function PROPERTY CALCULATOR. I would like to test if using this new function it would be possible to make a sum of hours worked on for example a service ticket or a business case. We have some class, e.g. a business case, where the hours worked are recorded, see fig:  

Thanks advance!

Does anyone have experience with this?

- pehol

Parents
  • Look at pages 40 & 41 of the Property Calculator manual.. I would collect all "hours worked" objects in a managed property (Compliance Kit) on "business case" object and do the calculation like stated in "10.2.6 Reporting" on page 40..


    https://kb.cloudvault.m-files.com/#/vault/{3ECA226F-7B54-428B-B539-DE443E6134EC}/objects/66E9E4F1-014D-4EFC-966F-30C574B04B65/latest

  • Thank you very much for your help, however why should I use managed property? Can you please be more detailed?

    - pehol

  • To have a property on the host Object which collects all the hours worked objects.. I assumed you linked from the hours worked objects to the business case Object.. Managed property basically creates a backlink..

  • I have used same combo as well. It works in specific use cases but there is one drawback. If someone change number of hours in "hours worked" object, the sum will not get updated. CK does not trigger calculation, because list of "hours worked" objects is not changed.

    Instead of CK, PC's "Update related objects" rule can trigger the calculation when either Business case or hours is modified. But taking that into use, I would recommend not to use Managed properties with that. (They would both try to update same objects which lead sometimes weird conflicts.)

    My suggestion is to use following PC configurations:

    • For Business Case:
      • Search objects -rule to collect list of "hours worked".
      • Calculate expression -rule to count sum of hours
      • (After calculation, "Hours worked" list can be removed with "Remove Property" - mode if you do not want to leave it visible on metadata)
    • For Hours worked:
      • Update related objects rule to update Business case if Business case or hours is modified.
        • You probably want to set "Update objects behind removed lookups" and "Update immediately" flags on in configs.
Reply
  • I have used same combo as well. It works in specific use cases but there is one drawback. If someone change number of hours in "hours worked" object, the sum will not get updated. CK does not trigger calculation, because list of "hours worked" objects is not changed.

    Instead of CK, PC's "Update related objects" rule can trigger the calculation when either Business case or hours is modified. But taking that into use, I would recommend not to use Managed properties with that. (They would both try to update same objects which lead sometimes weird conflicts.)

    My suggestion is to use following PC configurations:

    • For Business Case:
      • Search objects -rule to collect list of "hours worked".
      • Calculate expression -rule to count sum of hours
      • (After calculation, "Hours worked" list can be removed with "Remove Property" - mode if you do not want to leave it visible on metadata)
    • For Hours worked:
      • Update related objects rule to update Business case if Business case or hours is modified.
        • You probably want to set "Update objects behind removed lookups" and "Update immediately" flags on in configs.
Children