As in other programming languages, in AL we can pass a variable by value or by reference. In this short post, you will learn what is the difference between them. Also, you will learn that some data types only support passing by reference in Microsoft Dynamics 365 Business Central.
Tag Archives: Reference
How to reference another extension from an extension
With NAV2018 you can have multiple extensions installed, and it is possible to make a dependency reference from one extension to another, but how? When downloading symbols, you’re only getting system and application.
Working with Mediaset References in Microsoft Dynamics NAV 2017
Mediaset is a new data type introduced with Dynamics NAV 2017. Read the documentation here: https://msdn.microsoft.com/en-us/dynamics-nav/mediaset-data-type.
When working with the Mediaset data type you might want to copy its content from one table to another table but not the same reference.
I had a dream: codeunit references
Polymorphism is a great thing. .NET, Java, C++ and other folks have enjoyed its benefits for a long time, some more than a quarter century already. Meanwhile, we, the meager C/AL bunch, can only dream about it and draft our little patterns that all come short of it if only by a tiny bit.
Checking filters through record reference
In some of the “tools” we create, we have a variable way of setting up records which need to be “processed” by our tool. For instance: The tool needs to run for sales orders which are released.
Field Style Color Reference
Format text to highlight information is helpful. For example, overdue invoices in red, users can quickly recognize and pay more attention on these documents.
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.