Jigsaw Blog

02

Dec
2010
0 comments

NAV RTC – Add-ins/dll/com

Creating a control Add-in

As you may know, NAV 2009 allows for "Control Add-Ins". This allows you to add any standard windows control (or 3rd party windows controls) to NAV. Not only do you have access to the controls, you have access to their events. By using this, I was able use a standard windows text box (the kind you use in visual studio), and use the "TextChanged" event, so the filters on a customer list update as the user is typing. (similar to find as you type in the classic client, only in text boxes on the grid, not a separate form).

It is a bit tricky to get working. You need to compile a special NAV control dll, and this dll needs to be installed on each computer running the role tailored client. But the result is worth it I think.

Compiled C# dll's

In this scenario, I had built my own dll for encryption (taken from http://mibuso.com/blogs/kirtangor/2010/03/23/implementing-encryption-in-microsoft-dynamics-nav/). While building it was straight forward, registering it was another matter. The standard regsvr32 was not working. The code that ended up doing it was:

c:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe TripleDES.dl /tlb:TripleDES.tlb