Not a question but a bug report..

Cem_KaraerCem_Karaer Member Posts: 281
Hi everyone!

In CU 5895 in the IsTimeForUpdate() function in NAV 4.0 SP3 there is a non-critical but overly overlooked error :)
The function compares the last update time of the dialog with the current time. When there is a day-pass it does not update the dialog anymore because the difference of the current time and the last update time is always below zero. For instance let's say that last update time = 23:59:59 and current time = 00:00:01 then the difference is -86398000 which is below 1000 then there will be no update for the dialog window.
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005

Comments

  • ara3nara3n Member Posts: 9,256
    I guess the solution would be to get absolute of the difference.
    IF ABS(TIME - WindowUpdateTime) >= 1000 THEN BEGIN
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Cem_KaraerCem_Karaer Member Posts: 281
    ara3n wrote:
    I guess the solution would be to get absolute of the difference.
    IF ABS(TIME - WindowUpdateTime) >= 1000 THEN BEGIN
    

    Yes. That's true.
    Cem Karaer @ Pargesoft
    Dynamics NAV Developer since 2005
Sign In or Register to comment.