Sinc eDynamics NAV 2017 Cumulative Update 13 – and also in Dynamics NAV 2018 – the Office Integration experience has been enriched by a new interop assembly to handle non-modal calls to Microsoft Word and retrieve document close events.
Tag Archives: Class
Using Codeunits as Classes
This time, I’ll present you with another way to use Codeunits in NAV.
By using Codeunits as parameters to a function, you can use Codeunits as (sort of .NET) Classes.
If you declare different local variables to the same Codeunit, they even have their own version.
How To Update a Class Or Assembly Reference in C/AL And Retain Event Trigger Code
When you reference a .NET class that exposes events, and you switch on the WithEvents property, C/SIDE creates the event triggers for you. If you later want to update the reference to the .NET class, for whatever reason (like, there is a newer version of the assembly), updating the reference will actually delete the event triggers with all the code in them.
Time driven actions with .Net Class Timer
Till Nav 2009 if time driven actions were needed, it was done using automation NTimer.dll (NavTimer). With Nav 2013 and newer Versions Microsoft recommends to avoid usage of automations. As a result many of the common used automations, shipped with Nav 2009 and earlier, disappeared. There are few descriptions, how to solve common issues formerly solved with automations. So, let’s have a look at the Timer issue.
Use Reflection to find a .NET class with NAV2013
This little function can be used to figure out where a class is located – It will run through all assemblies and all classes available to Microsoft Dynamics NAV 2013.