Category Archives: Control Add-ins

Directions EMEA 2015 Session Content

For me, Mannheim was always a yet another German city, one that beyond its name I knew nothing else about. When it was announced that Directions EMEA 2015 would be in Mannheim, my first reaction was “say what?” And yet, just as last year in Poznan, I was pleasantly surprised, and realized that every place has something to show, spirit to share, and energy to bring.

There are very few conferences that matter to me. One of them is Directions EMEA, and this year it’s the fourth time that I got a chance to speak and share my ideas and hacks with the community. As promised, and in line with my never-broken tradition, I’m publishing all my content on my blog for you to download.

Continue reading Directions EMEA 2015 Session Content

Capturing unhandled errors in JavaScript Control Add-ins

Not that I am saying it’s a good thing, but trial and error is a fairly common approach to debugging in the NAV world. We’ve all done it. Heck, even with the comprehensive testability framework built in, we all still do it more often than we’re happy to admit while sober.

But the overlord of trial and error in NAV is development of control add-ins in JavaScript. JavaScript itself is making it difficult in the first place, and then integration with NAV makes it even harder.

There is one situation in particular that’s adding a cherry on top of all of problems, and it’s the creepy “A script error has occurred” error message. It’s the equivalent of the BSoD.

Continue reading Capturing unhandled errors in JavaScript Control Add-ins

Deploy your resource automatically from Visual Studio

In most of my JavaScript client extensibility demos, I develop the whole content of my resource ZIP files inside Visual Studio. When I press F6, magically my NAV gets updated with the latest version of JavaScript that I just wrote. So, how do I do that?

Here’s the cookbook.

Continue reading Deploy your resource automatically from Visual Studio

Client Extensibility Demos

On Monday, June 15th I have delivered another session in Microsoft’s Road to Repeatability series of online demos about technical NAV features, this time covering Client Extensibility. The session went through both the .NET and JavaScript aspects of client extensibility, and again – I promised to post all of the demos and content from the session on my blog.

So, here it is, given as-is, with no guarantees or strings attached, just the plain content for you to see if you can make any sense out of it.

Now my to-do list has grown quite big with the stuff that I want to blog, and it includes presenting and explaining most of the concepts I showed in my presentation. So, keep your fingers crossed that I find just enough time to blog about all those small things that have found their way into my presentation, but never into real blog posts that take them inside out and explain in-depth what they are and how really they work.

Of course, you are still free to use any of this in any real, or unreal life scenarios.

Control Add-ins and Version Compatibility–Update

Yesterday I posted a quick tip, which quickly got some comments about it being wrong. Since I know people who commented were unlikely to say something incorrect, I went to check on, because I myself experienced difficulties that made me write that post.

So, I analyzed to see who’s right and who’s wrong, or better yet – to see why different people might get different results.

Here’s the results.

Continue reading Control Add-ins and Version Compatibility–Update