Navision Timer in RTC

arcull
Member Posts: 191
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
-
-
thanks mohana_cse06, I'll check it0
-
Timer's: do not really work as you might expect in 2009SP1/R2 as the event will never be send to the server. You have to use the Add-in approach that Freddy uses in his example to get the a timer to trigger and being able to send that via the ControlAddInEvent trigger to the server.
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“This posting is provided "AS IS" with no warranties, and confers no rights.”
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT0 -
Hi,
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?Regards,
Evert-Jan0 -
I installed new RTC software with build number 7.0.34453.0.
It seems to be solved now.
:-)Regards,
Evert-Jan0 -
But still sometimes the timer stops working.
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?Regards,
Evert-Jan0 -
The new PingPong does not work in all cases.
See here -> http://www.dynamics.is/?p=1311________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
In my case I use only 1 timerRegards,
Evert-Jan0 -
Some customers went live on NAV2013. But soon they got NAV server crashes. Somehow we managed to detect that the PingPong addin was the 'boosdoener' (dutch). Google translate says it means 'malefactor'. ;-) So we removed the addin and the crashes are gone. But we need the functionality... Today at a .Net interoperability course from Vjeko I got a solution: http://vjeko.com/blog/net-tips-tricks-dispatcher. Vjeko told me also that the PingPong addin probably crashed because of asynchronous events. Vjeko's code only uses synchronous events. So, I will try this code and keep you updated about the results!Regards,
Evert-Jan0 -
Evert-Jan wrote:[...] the 'boosdoener' (dutch). Google translate says it means 'malefactor'. ;-) [...]No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
henrikm wrote:Timer's: do not really work as you might expect in 2009SP1/R2 as the event will never be send to the server...
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.New kits on the blog: https://massivedynamicsblog.wordpress.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions