Navision Timer 1.0 and NAS

WojtekmWojtekm Member Posts: 123
Hi,

I`ve tried to use NAS to run data import in regular time intervals.
I`ve wote that code in singel instance codeunit (on run trigger).
IF ISCLEAR(Timer) THEN BEGIN
  CREATE(Timer);
  Timer.Interval := 60000;
  Timer.Enabled := TRUE;
END;

Timer is global Variable with:
type: Automation,
subtype: 'Navision Timer 1.0'.Timer.

But i dont`t get any additional trigger to wite code.
Where should I put my code to execute it in time interfals?

regards,
Wojtekm

Answers

  • androjdazandrojdaz Member Posts: 20
    Wojtekm wrote:
    Hi,

    I`ve tried to use NAS to run data import in regular time intervals.
    I`ve wote that code in singel instance codeunit (on run trigger).
    IF ISCLEAR(Timer) THEN BEGIN
      CREATE(Timer);
      Timer.Interval := 60000;
      Timer.Enabled := TRUE;
    END;
    

    Timer is global Variable with:
    type: Automation,
    subtype: 'Navision Timer 1.0'.Timer.

    But i dont`t get any additional trigger to wite code.
    Where should I put my code to execute it in time interfals?

    regards,
    Wojtekm
    Hi there,
    check global variable's Timer properties. Set WithEvents to Yes
    That's what she said!
  • WojtekmWojtekm Member Posts: 123
    Thanks, it works.
Sign In or Register to comment.