Posts

Showing posts from October, 2023

Business Central 2023 wave 2 (BC23) (Namespaces in AL)

Image
                                                                   Namespace syntax : To declare a namespace in AL, you must use the namespace keyword followed by the name of the namespace. Some best practices for namespace keywords are: A namespace should be globally unique. The using directive : The using directive is placed at the top of the .al file, after the namespace declaration and before any object declarations. The following example shows the order of the namespace declaration and the using directive.                        This is similar to namespace in C# and other program language. More details: https://learn.microsoft.com/en-US/dotnet/csharp/fundamentals/types/namespaces                     ...

Action Sound Alerts In Business Central

Image
  Sound alerts can be helpful when you need the user´s attention. But, in my opinion, they should be used carefully. JavaScript in Business Central : Control Addin : The way to call this method with AL is by using a controladdin object like the following:   Usercontrol : Finally, we need a usercontrol to invoke the controladdin. Only then, will we be able to call the method ‘CreateSound’: Test Video                  

D365 Business Central : Add Visual Indicator to Page

Image
                                              Using color or visual indicators is a great way to convey information quickly. They can represent different meanings, conditions, or statuses, making it easier for people to understand and interpret information without needing to read or process data. I have blogged about using Style Color to accomplish this. Another way to do this is to use Emojis as visual indicators. Consider the scenario where we want Inventory Indicator on our Item List page. We want Red = Out of Stock, Yellow = Low Stock (less than 10), Green = In Stock. Let’s use Emojis as a visual indicator. Below is the sample code. Please let me know your views and comments. Thanks  Srk.A