Wednesday, March 20, 2013

create a new Morphx Development project


Project: A project is a subset of the Application Object Tree (AOT) that allows you to group the application objects you are currently working on. Everything that you create, delete, or modify in your project is automatically created, deleted, or modified in the AOT.

there are two types of project in axapta. 1.private 2.shared.
in axapta hit ctrl+shift+p


Private projects are only available to the user who created them.
Shared projects are available to all users and can be used as a tool for work groups to manage their work. A number of shared projects are supplied with your Microsoft Dynamics AX installation.

The advantages of using projects include:
  • They provide an overview of the application objects you are currently working on.
  • Changes made in the project are automatically reflected in the AOT. Similarly, if changes are made to an object in the AOT, these changes are reflected in any project that the object exists in.
  • You can group application objects in different ways within a project, for example, by the user or by the team responsible for the object.
  • Projects can be generated automatically by using the project filter or the properties of the project group.
  • The project remembers the state you last left it in: which windows were open, which branches were expanded, and so on. This state is saved separately for each individual user.
  • You can compile and save all objects within a project in one operation.
How to Create a MorphX Development Project :
http://msdn.microsoft.com/EN-US/library/aa589339.aspx

     
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Application Object Tree

Application Object Tree(AOT): contains all of the definitions of elements that are used to build Microsoft Dynamics AX, such as classes, tables, forms, and so on.


The above figure arrow mark indicates newly added in Application object tree in the Ax-2012

The below link explain all the elements in the AOT:

http://msdn.microsoft.com/en-us/library/aa843974.aspx

Best Practices for Application Objects:

http://msdn.microsoft.com/en-us/library/aa639826.aspx

Debugger tool

How to install debugger:

  1. Start Microsoft Dynamics AX Setup.Under Install,select Microsoft Dynamics AX components.
  2. Advance through the first wizard pages.
  3. If the Setup Support files have not yet been installed on this computer, the Select a file location page is displayed. The Setup Support files are required for installation. Provide a file location or accept the default location, and then click Next. On the Ready to install page, click Install.
  4. On the Select installation type page, click Custom installation, and then click Next.
  5. On the Select components page, select Debugger, and then click Next.
  6. On the Prerequisite validation results page, resolve any errors. When no errors remain, click Next.
  7. If you are installing on a 64-bit operating system, the Select a file location page is displayed. Select the location where you want to install 32-bit versions of Microsoft Dynamics AX files, and then click Next.
  8. On the Prerequisite validation results page, resolve any errors. When no errors remain, click Next.
  9. On the Ready to install page, click Install.
  10. After the installation is completed, click Finish to close the wizard.
How to enable debugger:

http://msdn.microsoft.com/EN-US/library/aa569665.aspx

Debugger Windows:



1.Variables window displays the values of the variables that are within the current scope. When the value of a variable has changed between stops, it is highlighted in a different color in the variables window to make it easy to identify the changes.
2.Call Stack window in the Microsoft Dynamics AX debugger displays the stack method calls. This lets you see which method called the one that is currently being shown. The Call Stack window displays only X++ code frames. No kernel code is shown.
3.The Watch window in the Microsoft Dynamics AX debugger displays a user-defined range of variables.
4.The Breakpoints window in the Microsoft Dynamics AX debugger displays an overview of the breakpoints that are set in:
  • The Microsoft Dynamics AX client
  • The Application Object Server (AOS)
  • Microsoft Dynamics AX Business Connector
5.The Output window in the Microsoft Dynamics AX debugger has separate views that display text written to the window from X++ code and kernel code. These views organize the information that is sent to the Output window.

for more information:
http://msdn.microsoft.com/EN-US/library/aa569670.aspx

shortcut keys for debugger:

http://msdn.microsoft.com/EN-US/library/aa569646.aspx

Note: We have to find out all the breakpoints AOT>Forms>SysBreakpoints in Ax-2009

     

 

Wednesday, March 13, 2013

about classes

class:A class is a software construct that defines the data and methods of the specific concrete objects that are subsequently constructed from that class.
The data represents the state of the object.
The methods represent the behavior of the object.

for more information about class: http://msdn.microsoft.com/en-us/library/aa868834.aspx

Variables are the data for the class. Variables in an X++ class are specific to objects that are constructed from that class. Every object constructed from the class declaration has its own copy of the variables. Such variables are known as instance variables. You cannot declare static variables in X++.
Methods:Methods are the sequences of statements that operate on the data. Methods are typically declared to operate on the instance variables of the class, and are known as instance methods or object methods. In X++ you can also declare static methods.

for more information about method : http://msdn.microsoft.com/en-us/library/aa673265.aspx
How to create a class in AOT:  http://msdn.microsoft.com/en-us/library/aa631180.aspx

Types of classes:There are two types of classes
1.Application classes.
2.System classes or kernel classes.

1.Application classes are implemented in X++.
They are available in the Classes node in the AOT.

 for more information about all application classes:
 http://msdn.microsoft.com/en-us/library/aa573512.aspx

2.System classes, sometimes called kernel classes, are implemented in C++.
They are listed under the AOT >System Documentation > Classes node .
However, the source code for these classes is not available.
for more information about all system classes:
http://msdn.microsoft.com/en-us/library/aa853470.aspx

Methods in X++ :

http://msdn.microsoft.com/en-us/library/aa673265.aspx

update_recordset with joins

 update_recordset with joins update_recordSet storeTransfer         setting      TransactionId = transfertable.TransferId     join transfert...