Use Automation Navision Timer... you will get new event - AutomVariable::OnTimer. On the variable you can set interval and enable - disable the timer...
Yes and No... I think that it is easy and more "clean" to do it with automation. But you can use form OnTimer event to do it. But there is problem, that you are not able to disable/enable this timer in run-time. It must be enabled in form properties and enablin/disabling must be done through some condition in the trigger (IF TimerEnabled then ...)...
Because if you use SLeep, the form is still blocked and there is opened transaction. If you use Timer, you can still work and you are not blocking other users if you started some transaction before... :whistle:
Comments
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Then you will see some new triggers on the bottom of your C/AL window where you can add the necessary code.
...
Everybody on-line.
...
Looking good!
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Xavi
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What is unclean about that???
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
And off course, when during a 30 second interval ... one would want to work ...
OK, my mistake ... :oops:
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog