In this video, I show how to extend an AppSource app using the new Interface object type. The Cloud Replicator from E Foqus is built around an interface, making it possible to add support for new databases.
Microsoft Dynamics 365 Business Central 2021 Release Wave 1 is out (whoa, that was a mouthful) with some new perks for developers. Today, I had another live session at http://vjeko.live, and I made it both the first one in the series of What’s New for the latest release, as well as the episode four of Fun with Interfaces.
Interfaces are somehow like codeunits, excepting that an interface can only contain method signatures(name, parameters), not also the implementation of these methods. Interfaces are a way to achieve polymorphism. Polymorphism means “to have many forms”, so an interface can be used to call functions from different Codeunits, bearing the same name, but each having different behaviors. Before an interface can be used, one or more Codeunits must implement that interface.
With the Microsoft Dynamics 365 Business Central 2019 wave 2 release, Microsoft made available a new data type – Enumeration (Enum).
Enum is a list that consists of a set of named constants. It can be used as table fields, local and global variables, and parameters.
I just love it when I get an error and nothing I search for answers what to do next.
Like this one
Value ‘ ‘ does not implement interface ‘ForNAV Layout’ and there is no default implentation for the mentioned interface.AL(AL0596)
There is no mentioning of default implementations in the Microsoft documentation.
A new object type is available in Business Central 2020 Wave1: “interface” object
Since I have never talked about it, I speak of it now, I don’t report particular examples as there are already several published.
Below are some links to very well made examples, useful for understanding how to best use them. Enjoy the reading.