X++ Tutorial


1. Object The objectives are:


• Identify the key features of developing with X++. 

• Describe the basic foundation of object-oriented programming. 

• Use the development tools available within Microsoft Dynamics AX.


2. Introduction 


X++ is the primary programming language used in the Morph X Development environment. When you develop with X++, refer to Microsoft Dynamics AX Developer Help, available from the Help menu, for detailed information. The following are important features of X++:


• X++ resembles other popular languages such as C# and Java. Due to this resemblance, programmers already familiar with these languages will be able to transition quickly into the Morph X development environment.


• Because X++ includes many integrated SQL commands, Microsoft Dynamics AX can build complex accounting and business management systems. 


• X++ is an object-oriented language and provides a clean and efficient object-based development platform. 


• Programmers who use X++ can access existing Microsoft Dynamics AX system classes that provide functionality ranging from basic I/O, and XML to changing controls in the graphical user interface at run time. These system classes can be extended to provide new behavior.


3. Characteristics of X++ The following are characteristics of X++


• Reliable: X++ provides extensive compile-time checking, followed by a second level of runtime checking. Language features guide programmers toward reliable programming habits. The memory management model is simple; objects are created by using a "new" operator, and there is automatic garbage collection. There are no explicit programmer-defined pointer data types or arithmetic. This model eliminates entire classes of programming errors. 


• Interpreted and Dynamic: Benefit from faster development cycles - prototyping, experimentation, and rapid development, versus the traditional compile, link, and test cycles. 


• Interoperable: Components in Microsoft Dynamics AX are seamlessly available to any application supporting .NET, and conversely, X++ can consume externally managed code and COM objects. 


4. Development tool 


Application development is carried out in Visual Studio. The development tools support all of the development tasks, including debugging and local testing scenarios. Visual Studio is the exclusive integrated development environment (IDE) for development. 


All of your application development work will be performed with it. This section is an overview of the main features that are added to Visual Studio when the development tools are installed. 


    4.1 Application Explorer 


    In Visual Studio, the model store is represented by the Application Explorer. On the View menu, click Application Explorer to open it. Use the Application Explorer to browse and interact with the elements in the model store that define the applications. The following illustration shows the Application Explorer. For more information, see Application Explorer. 




    4.2 The project template 


    when a simple application can have a large number of elements in its model. The Operations Project template has been added to Visual Studio to help you organize and manage the elements that you are working with for a model. You will use the project to design, build, and test model elements. It’s common to have several projects within a single Visual Studio solution. The following illustration shows three projects in a Visual Studio solution. 




    4.3 Element Design 


    The Visual Studio tools contain designers for each kind of element in the application. You will use these designers when you create or modify elements. The following illustration shows the element designer for a form element.





    4.4 Code Editor


    The X++ code is written in the code editor for Visual Studio. The standard features that a developer expects from the code editor are supported. For example, sections of code are collapsible. IntelliSense provides guidance as you write or modify code.  




Comments

Popular posts from this blog

How to customize electronic reporting in D365

Batch parallelism or multithreading in Dynamics 365 for Finance and Operations

How to Enable/Disable a Form Button with X++

How to create and run the Runbase batch class in D365

Build HTML and send email in D365 FO with X++

Difference between InMemory and TempDB tables in D365 F&O

Conditional Statements in X++

How to apply a package in LCS Dynamics 365 F&O

Customize the standard excel template in D365FO

How to write the event handler in D365