Navision Timer in RTC

arcullarcull Member Posts: 191
edited 2014-07-15 in NAV Three Tier
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.

Comments

  • arcullarcull Member Posts: 191
    thanks mohana_cse06, I'll check it
  • henrikmhenrikm Member, Microsoft Employee Posts: 66
    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
    MSFT
  • Evert-JanEvert-Jan Member Posts: 36
    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-Jan
  • Evert-JanEvert-Jan Member Posts: 36
    I installed new RTC software with build number 7.0.34453.0.
    It seems to be solved now.
    :-)
    Regards,
    Evert-Jan
  • Evert-JanEvert-Jan Member Posts: 36
    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-Jan
  • thegunzothegunzo Member Posts: 274
    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.com
  • Evert-JanEvert-Jan Member Posts: 36
    In my case I use only 1 timer
    Regards,
    Evert-Jan
  • Evert-JanEvert-Jan Member Posts: 36
    On advice of Microsoft we added the timer field at the top of the page as you can see in attached picture and it seems to be a very stable solution. :-)
    Regards,
    Evert-Jan
  • Evert-JanEvert-Jan Member Posts: 36
    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-Jan
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Evert-Jan wrote:
    [...] the 'boosdoener' (dutch). Google translate says it means 'malefactor'. ;-) [...]
    The correct translation is: culprit.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • gerdhuebnergerdhuebner Member Posts: 155
    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...
    Well, I tried Navision Timer 1.0 automation server, too, but the timer event is never fired, as already stated.
    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.
Sign In or Register to comment.