Thursday, November 20, 2014

Application Modules in Ax 2012

Application modules: Home, Organization administration, and System administration.
The Home application module should provide menu items pertinent to general application users for features that are not tied to a specific application module. Clicking the Home module button should display the logged-on user’s Role Center (if installed) as well as a link to the Home area page. If Role Centers have not been installed, clicking the Home module button should display the Home area page.
The Organization administration area page should be reserved for menu items that cross the application modules in Microsoft Dynamics AX and are related to business functionality. This application module should be used for menu items for business process-related features. Conversely, links associated with the support and operation of the ERP system software should be placed in the System administration area page.
Note: The Organization administration module in Microsoft Dynamics AX 2012 contains functionality that was in the Basic and Administration modules in earlier releases of Microsoft Dynamics AX.
The System administration application module is reserved for product-wide menu items that directly support the operation and function of the ERP software and servers. This area page should be used for list pages, forms, and setup and configuration menu items for software system-related features. Conversely, links associated with the support and operation of the business applications should be placed in the Organization administration area page.
Note: The System administration module contains functionality that was in the Basic and Administration modules in earlier releases of Microsoft Dynamics AX. The Basic and Administration modules have been removed from the product.

Tuesday, November 11, 2014

Difference between Overloading and Overriding

Overloading and overriding is done on methods and variables in classes.

Overloading: overloading of method is writing the same method with different number or different types of arguments in the same class. the method name will be same but arguments types or no. of arguments will be different.
X++ does not support method overloading and can't be used in AXAPTA.

Overriding: Overriding is writing a method implemented in parent class again in child class. 
Note that the parent class method again implemented in child class . So the method signature remains same and will not change. If we try the no. of arguments or type of arguments in child class we will get unexpected results.  

Thursday, November 6, 2014

Export and Import model files

A model is a set of elements in a given layer. 
Each layer consists of one system-generated model that is specific to that layer but we can also create  new models on a specific layer like USR or VAR.
Exporting a model file is very useful if you need to migrate all your customization from one environment to another environment. 

Export Model File:


Go to Administrative Tools>Microsoft Dynamics AX 2012 Management Shell
type the following command 

Export-axmodel -Model "ModelName " -File "path"

Ex: export-axmodel  -model  "usr model " -file "d:axmodel\usr_model" 

Import Model File:

install-axmodel -File"path" -details

Ex:  install-axmodel -file"d:axmodel\usr_model" -details 

Uninstall/Remove Model File:

uninstall-axmodel  -Model "ModelName"

Ex: uninstall-axmodel -model  "USR Model"

Enable/Disable form control based on multiple rows select

 class PurchTableFormEventHandler {      [FormDataSourceEventHandler(formDataSourceStr(PurchTable, PurchTable), FormDataSourceEventType::Act...