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.
Implementing a new ERP system in an organisation is always a challenge. Users question whether they will be able to cope with analysing the data flow in an integrated system without external support. The accountant wonders whether all the set-up accounts are correct. The chief technologist cannot get rid of troublesome thoughts about whether the routings and boms are set up optimally. This is why it is so important to have a reliable service team to help the company control the system in the post-implementation stage. In this article, we take a look at the issues surrounding the implementation of an ERP system and the benefits of maintaining proactive service support.
328.77 million terabytes of data are generated every day - this is the estimate for the first quarter of 2023 (1). These are massive amounts of data on a global scale. On a smaller scale, such as an enterprise, it's difficult to estimate because it depends on the organisation in question, but one thing is certain - collecting, processing and analysing this data is the key to business success today. Why is the Data Lake service so important for data analysis and reporting in Microsoft Dynamics 365 Finance and Operations? How can you tame the data by integrating Microsoft Power BI analytics with Data Lake? We have drawn up some tips.
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.