Hello,
Is it possible to use NavTimer.DLL from Navision 2009R2 in Nav2013R2 with NAS?
Thank you
Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
0
Answers
We've done some recent work with this DLL and NAS and it seems to work just fine.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
http://www.epimatic.com
NAV 2013 has a new addin called PingPong which does the same as timer would (in my understanding).
http://www.dynamics.is/?p=1311
Marcell
The issue we found with this is that the PingPong control works great as a client side control, but it will not run server side, which is required for running with the NAS.
And that's my problem...
I am migrating a NAV5 to a NAV7 and I used the NAV Timer 1.0 on NAS.
The timer problem on NAS, it was solved by JobQueue but I still have one problem with the error handling.
On NAV5 with Timer, when it gave an error they go to TimerError and rollback transaction even codeunits with Commit...
Right now IF I try to Post a GenJnlLine and gives error, the line stay on the journal.....
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
1. Timer Codeunit
2. Execution Codeunit
3. Loggin Codeunit
You need a parameter table like "Job Queue Entry"
The Timer Codeunit would be something like this
You start the timer codeunit using STARTSESSION command.
In the execution codeunit you select what to do and returns all that needs to be logged via the parameter table.
But
What I do in real life is create a report and add that report to the Job Queue.
In the report I execute a codeunit with error handling and logging.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I had this code in NAV 5 that I can't seem to be running in NAV 2013
Codeunit single instance
I had ADODB automation which I replaced with DOTNET variables SQL...
But it seems that if I put the one codeunit on single instance and run your code it only runs 1 time....
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
In Codeunit 448 you will find the code
Again I suggest that you use report to do the error checking for you codeunit and add the report to the standard job queue.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
Why report and not codeunit?
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit