Category Archives: Uncategorized

Encapsulation in JavaScript

This will be my last post in the “JavaScript for (C/)AL Developers” series today. If I continued blogging about nearly pure JavaScript stuff, you could reasonably ask if this is in fact an NAV blog or a JavaScript one. It’s still NAV, and while the stuff I am about to write about is purely a JavaScript concept, I find it highly relevant for any control add-in developer. So, hold my beer, and bear with me for another one.

One of the complaints I often hear about JavaScript is that in JavaScript there is no encapsulation. This is almost completely true, except for the fact that it’s entirely false.

Where is the problem in the first place, and then what is the solution? Let’s dive in.

Continue reading Encapsulation in JavaScript

Some more thoughts about trampling over $

I am on a spree today. The number of topics I wanted to blog about has accumulated, and I just decided to dump the stuff over here while I both feel the motivation and have time for blogging. However, in this hurry, I forgot to add some important content to my previous post.

First, I forgot to mention that the example of my preserve-jquery script trick can be found in this github repo:

https://github.com/vjekob/controladdin-html

That’s the demo I blogged about earlier today, except this time it has two more branches:

  • Branch “problem”: showcases how a problematic script can break your code.
  • Branch “solution”: showcases how this problem can be fixed by applying the trick from my previous post

Also, there are two JSFiddles I created to follow screenshot-base examples from the post:

I have one more topic to cover today, which has much more to do with JavaScript than control add-ins, but I still find it very relevant. Stay tuned.

Abusing Images property to load HTML in control add-ins

One of major limitations of control add-ins is not being able to define HTML. It seems so unbelievably unbelievable, that anyone looking at it from the outside of the NAV/BC playground may say “obviously, you must be missing something!”. But I am not. The one thing that you would expect to find first when defining a control add-in (and control add-ins in NAV/BC are nothing more than pieces of HTML that live within the allocated area of your browser real estate) is to be able to define the HTML. And yet, you can’t define it. The only way to show any UI from your control add-in is to procedurally create any of your control add-in HTML.

This makes no sense. No. Sense.

Continue reading Abusing Images property to load HTML in control add-ins

By popular demand: The Muppet Show theme

NAV TechDays keeps getting better and better and better every year. So this year, my bro Waldo and I had to prepare a few special surprises in stock for you. And following all the buzz this has generated on Twitter and in the conference app was just amazing, and now we have to think of what can we do the next year to top this one. But let’s keep the next year to the next year, let me do something that a lot of you asked about: The Muppet Show “theme” for Microsoft Dynamics NAV 2018.

In short, this thing:

Continue reading By popular demand: The Muppet Show theme

NAV TechDays 2018 – Evolution of a titan: a look at the development of NAV from an MVP angle

In 3 days, it’s game-time again.  THE best DEV conference for Business Central will take place in Antwerp: NAV TechDays – and I’m honoured to be a part of it again.  But this year – it’s quite different, because I signed up for a challenge.  This year, I’ll be joining Waldo on stage for a very special session:

Evolution of a titan: a look at the development of NAV from an MVP angle

If you think this would be a boring look back at the stuff from the past that you can read about on wikipedia – you would be badly mistaken.  Here is the link to wikipedia, because you won’t get that from our session.

We are not there to talk about the past.  We are there to talk about what challenges – no, opportunities – are ahead, and how we as developers can act upon these challenges.  We will talk about (what we think as) the most important parts of the technology stack that has touch points with NAV (sorry, “Business Central”), and what impact it has on the future perspective.

And – Waldo wouldn’t do a session without killer demos (that’s why he asked me to join .. ).  Prepare yourself for no less then 45 minutes of no-nonsense-cutting-edge-demos that will blow your socks off (bring an extra pair, just in case!).

I don’t know about you, but I’m very excited to do this session together with Waldo – if you have seen any of his sessions, you know it will be totally worth your time!

See you there on Thursday at 4pm!