Exploring Interface Implementation: A Journey from Events to Enums

Abstract Last week, I had an conversation with my colleague Natalie Karolak. She faced a unique challenge: replacing an event-driven feature with interfaces. Her goal was to provide a template for end-users to implement every necessary function while ensuring the possibility of executing multiple implementations of the interface. As the designated pattern enthusiast at our … Continue reading Exploring Interface Implementation: A Journey from Events to Enums

The object oriented way of JSON handling in AL – Part 1

On the left side we have a normal JSON formatted object, on the right side we have a normal AL implementation of JSON generation Item JSON Object { itemNo: "123", price: 10.25, description: "Insane Item", ... ... ... active: true, variants: [ { description: "Total insane variant" }, { description: "not so insane variant" } … Continue reading The object oriented way of JSON handling in AL – Part 1

How to Implement a Command Queue in pure AL

In this article I show how to implement the command pattern (https://en.wikipedia.org/wiki/Command_pattern) and include it in a queue First of all we need the command interface Interface ICommand interface ICommand { procedure Execute(); } Because we want to add this to an queue we need a queue entry, i choose a codeunit to this put … Continue reading How to Implement a Command Queue in pure AL