Hi everyone. I wonder if it is possible to use navision timer (COM) automation in RTC. I tried the same approach as in classic, but the navisiontimer::timer trigger never fires. What are your experiences? Is there any other option to run some procedures periodically in besides NAS in RTC? Thanks in advance, bye.
0
Comments
http://blogs.msdn.com/b/freddyk/archive/2009/11/03/timer-events-on-a-page.aspx
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Note:
If you are looking into NAV 2013 you will find the PingPong Add-in as part of the release which does this for you. In 2013 it is also possible to use a client side timer object - but that is not a recommended practice.
/henrik
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT
I did implement the PingPong add-in in NAV2013.
It works till the moment you customize the page.
After that, the timer is not working anymore.
The problem only occurs in a page containing subpages.
The software runs on a recent build version: 7.0.34298.0
When I remove the User Metadata for the page, the timer is working again.
Do more developers have the same problem?
Is this a bug?
Is there a solution?
Evert-Jan
It seems to be solved now.
:-)
Evert-Jan
For example:
- sometimes the timer stops after an error message is fired in a listpart.
- sometimes the timer stops after customization of the page.
We use the timer in several places in our application.
Most of the times it works since the RTC client update, sometimes not.
The add-in is not very stable to my opinion.
Does anyone have other experiences with the pingpong add-in?
Evert-Jan
See here -> http://www.dynamics.is/?p=1311
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
Evert-Jan
Evert-Jan
Evert-Jan
So why is there a client side support of automation COM objects with events, but events do not work?
---
Meanwhile, I found the answer here: http://msdn.microsoft.com/en-us/library/ee909565(v=nav.71).aspx :
"In the development environment, an Automation variable includes a WithEvents property, but this property does not have any impact and must be set to No."
--- This should of course be mentioned as a limitation here http://msdn.microsoft.com/en-us/library/dd355074(v=nav.71).aspx, too, where the automation data type is explained.