Business Central Development
-
Automatically Confirm cmdlets
Some NAV PowerShell cmdlets (such as Import-NAVApplicationObject ) don’t have the -Force switch, and always ask for confirmation regardless of whether you include the -Confirm switch or not. To work around this, append the – Confirm:$false switch to such command.
-
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.
-
Control Add-ins and Version Compatibility
(Update, 20.4.2015: As it turns out – this post is not entirely accurate, as pointed out by Johannes Sebastian. Please read the next post to learn more about which parts are, and which aren’t correct.) Control Add-ins written in C# are not cross-version compatible.
-
Overloading Methods With JavaScript Control Add-ins
Switching from C# to JavaScript to develop your control add-ins might get you scratching your head more often that your scalp, or nails for that matter, might be happy with. One of those is overloading. In C#, this is a no-brainer: However, when you want to do that in JavaScript, if you are not a…
-
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.
-
Formatting for XML
When you have to format C/AL variables (numbers, dates/times, booleans) for exchange with other apps, call FORMAT(variable,0,9) instead of simply FORMAT(variable). The format 9 formats the variable according to XML standards, and this value can then be interpreted correctly on any system with any regional settings.
-
Creating an Azure VM with NAV 2015 using PowerShell
This post is well overdue, I admit it. I have demonstrated so many times so far how to create an Azure VM instance running Microsoft Dynamics NAV through a PowerShell script running on your PC, and it’s just about time to share this script and the theory behind it with the world.
-
Passing JSON from JavaScript to C/AL–Part 2
I stand corrected. A month ago I wrote about how to pass JSON from JavaScript to C/AL and then handle it inside, and what I wrote is not wrong, but I just figured a simpler way. Too bad all this is not documented, but hey – that’s why blogging is fun.
-
Passing JSON from JavaScript to C/AL
Yesterday, I said I was closing this year of blogging, but I wasn’t really. Closing a year with 39 posts, and leaving a question lingering, wouldn’t be too fair, would it? If you read my last postabout how to pass objects from C/AL to JavaScript , you must have wondered if it’s possible to also pass objects from JavaScript back to C/AL.
-
Passing strongly typed data to a JavaScript control add-in
Many cool things often go undocumented. I’ve just stumbled upon one of those, and it comes in handy to close this year of blogging. Imagine this situation: you have a server-side .NET object, that you want to pass on to the client.