September 30, 2014

Opening a Project in AX using code

static void projectNodeOpen(Args _args)
{
ProjectNode projectType,projectNode;
;
projectType = Infolog.projectRootNode().AOTfindChild('Shared');
projectNode= projectType.AOTfindChild('SalesTest');
if(projectNode)
{
projectNode.getRunNode();
}
}

Differences between MorphX and Intellimorph

MorphX is the Microsoft Dynamics AX IDE( Integrated Development Environment) which includes:
 - Data Dictionary
 - Tools for creating menus, forms and reports for Windows- and Web clients
 - Compiler and debugger for the object oriented programming language X++
 - Version control system
 - Label (multi language text) systems.
 
IntelliMorph is the Runtime Environment embedded in Microsoft Dynamics AX, that draws menus, forms, and reports for Windows- and Web-clients with the correct contents, size, and layout according to:
 - The language your texts are displayed in.
 - What features you can access.
 - How wide you want the fields on your installation.
 - The formats you are using for dates and numbers.

If any record is created in table I want to fetch the date & time stamp, how will you do that?

If you want to fetch the created date and time for a record inserted in table, firstly go to table property and enable 'createddate' & 'createdtime' property. Thereafter extra field will be created in your table browser. Now, once you create record, you can easily track the date and time from this field.

Sequence of calling form methods in AX 2012

This gives the information of method calls in the form level while
1. Opening the Form.
2. Creating/Updating/Deleting the record in the Form.
3. Closing the Form.

Sequence of Methods calls while opening the Form

Form --- init ()
Form --- Datasource --- init ()
Form --- run ()
Form --- Datasource --- execute Query ()
Form --- Datasource --- active ()

Sequence of Methods calls while closing the Form

Form --- canClose ()
Form --- close ()

Sequence of Methods calls while creating the record in the Form

Form --- Datasource --- create ()
Form --- Datasource --- initValue ()
Table --- initValue ()
Form --- Datasource --- active ()

Sequence of Method calls while saving the record in the Form

Form --- Datasource --- ValidateWrite ()
Table --- ValidateWrite ()
Form --- Datasource --- write ()
Table --- insert ()

Sequence of Method calls while deleting the record in the Form

Form --- Datasource --- validatedelete ()
Table --- validatedelete ()
Table --- delete ()
Form --- Datasource --- active ()

Sequence of Methods calls while modifying the fields in the Form
Table --- validateField ()
Table --- modifiedField ()