FlowField to calculate duration

michaelOVmichaelOV Member Posts: 5
edited 2010-10-27 in Navision Attain
Hi,

I would like to create a FlowField which calculates the diff between the values of two date fields of a table (the duration). Is it possible? As I can see the method referes only to one single field and there is no "Diff" method.

Regards
Michael

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    I'm afraid you have to develop it on your own.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • matttraxmatttrax Member Posts: 2,309
    Yeah, you can add code to each of the OnValidate triggers for the fields to fill in the new field. If they are base fields you can use the Developer's Toolkit to find all of the places where those values are assigned and make sure they are using a VALIDATE instead of a :=.
  • michaelOVmichaelOV Member Posts: 5
    matttrax wrote:
    Yeah, you can add code to each of the OnValidate triggers for the fields to fill in the new field. If they are base fields you can use the Developer's Toolkit to find all of the places where those values are assigned and make sure they are using a VALIDATE instead of a :=.

    Thanks for all your help!
Sign In or Register to comment.