Create standard class methods for AX 2012Continue reading
In Dynamics AX is very often needed to create standard class methods like construct, main, parm methods etc. In this post I'll show you how to create them the fastest way using Dynamics AX built-in functionality.
So let get started, first create new class in AOT and rename it:
Then double click on the class to open the code editor and click on button ‘New’ to create new method:
Now select all in the newly create method (use ‘Ctrl+A’ key combination) and type construct, then hit the ‘Tab’ key and the magic happens, the construct method was created:
Now we’ll create a main method the same way, just create new method, select all and type ‘main’:
Press ‘Tab’ and the main method gets created:
The only thing you need to add now is creating instance out of class and running some method from the instance. For creating the instance we can use the construct method created before also in automatic way:
So now comes the best part, creating parm methods automatically. Create new method, select all and type ‘parm’, then press tab. A new form will pop-up to declare variable and type for the parm method:
Just have in mind that you should declare the variable in the class declaration as well:
And that's it, you can create basic methods that you need in most of the classes in matter of seconds.
The retail industry is still dealing with the effects of the pandemic that lasted almost three years. In addition to this, further global events are causing disruption to the supply chain or financial stability of many retailers globally. As the industry confronts new challenges shaped by economic and geopolitical factors, it also faces trends influenced by changing customer expectations and needs. Here are 5 developments and trends to watch.
An interactive, AI-powered support for sales, customer service, marketing, and supply chain - Microsoft Dynamics 365 Copilot leverages generative AI and natural language processing technology to perform simple, yet time-consuming daily tasks that workload employees but can be automated.
Every company management facing a system change wonders what steps should be taken to ensure that this change does not cause turbulence to its business. Identical dilemmas are faced by any IT company that provides services to implement a new system. I will focus on these dilemmas today.
Artificial intelligence (AI) and machine learning (ML) technologies are changing business every day - just as new tools and services are frequently emerging to expand their use cases. PwC estimates that the impact of these technologies on the global economy will add approximately $15.7 trillion to its value by 2030 (1).