Thursday, August 22, 2013
Wednesday, December 12, 2012
Microsoft Dynamics AX R2 White-papers
Tuesday, August 7, 2012
AX 2012 Retail Technical Conference Recordings
Tuesday, March 13, 2012
AX 2012 Whitepapers for developers
Thursday, April 21, 2011
Microsoft Dynamics AX 2012 Documentation Resource Whitepaper
Tuesday, April 12, 2011
New private ERP cloud offering by Avanade
Microsoft Dynamics AX 2012
Friday, July 23, 2010
Get the current navigation pane area through program
static void GetCurrentNavPaneArea(Args _args)
{
xInfo objxInfo;
xNavPane objxNavPane;
Treenode objTreeNode;
xTaskPane xtask;
Treenode t;
;
objxInfo = new xInfo();
objxNavPane = new xNavPane();
objTreeNode = objxNavPane.getSelectedPlacesNode();
info(objTreeNode.AOTparent().treeNodeName());
}
Monday, June 7, 2010
AIF – Web service Configuration - Troubleshooting
- If you get the 404 error while accessing the service URL, then it might be because WCF is not registered. Consider registering Windows Communication Foundation (WCF) with IIS. To register WCF If IIS has installed after .net framework then use below options
- Open command prompt and set the directory path to WCF directory, which is usually, C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
- Run the following command: ServiceModelReg.exe /i /x Refer tech-net link for more detailed information.
- If you face the error shown in below image after registering the WCF then check the below points to get rid of the error:
- Check that the windows authentication has enabled for AIF virtual directory.
- Following should be the binding section of web.config file available in virtual directory physical path:
- Enabled providers for virtual directory are NTLM and Negotiate both:
I was able to make the web service work after these troubleshooting steps. Hope these might be a help to anyone.
Tuesday, March 2, 2010
Burn an ISO to bootable media
I was trying to burn the windows server 2008 r2 ISO image into a DVD as bootable. I found a useful tool by our own Microsoft while doing the R&D over internet on various freeware's. This tool is freely available currently at Microsoft Store site and very easy to use. The name of the tool is WINDOWS 7 USB/DVD DOWNLOAD TOOL. It can create write the ISO file into DVD\USB drive and make it bootable. You can download this tool from: http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe
For further information or help on the tool please visit: http://store.microsoft.com/help/ISO-tool
Saturday, February 27, 2010
Virtual Box (.vdi) image optimization
About Virtual Box:
Virtual box is a virtualization product developed by sun micro system. You can create a 64 bit guest machine and host it on a 32 bit OS using virtual box. For more information on virtual box visit: http://www.virtualbox.org/
Optimize Image
Below steps explain the required procedure to compact the size of a virtual box image (.vdi).
- Zero free space in .vdi image:
The first step in the optimization process is to free up the unallocated space from the image. You need to follow below mentioned steps for the same:
- Start the virtual box image.
- Download the SDelete tool from http://download.sysinternals.com/Files/SDelete.zip & extract it to a folder say C:\SDelete drive in the image.
- Run the command prompt and type following command to run the SDelete utility:
sdelete –p 3 –c C:
Note: If you have multiple drives then run the utility for both of the drives. For more information on SDelete utility visit: http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
- Shut down the virtual box image.
- Start the virtual box image.
- Compact Virtual Box image:
Second & final step in optimization process is to compact the virtual box image size using VBoxManage utility. VBoxManage utility can be found at the installation folder of virtual box usually "C:\Program Files\Sun\VirtualBox".
- Run the command prompt and run the following command:
C:\Program Files\Sun\VirtualBox\VBoxManage modifyhd "D:\Virtual Box\Server.vdi" –-compact
- You will get the optimized virtual box image after this step. Notice that you will be able to free up some good amount of space from the imageJ.
Tuesday, January 19, 2010
Send mail through X++ code by using the predefined e-mail templates in AX
The e-mail format can be specified at Basic Module -> Setup -> E-mail templates. Microsoft Dynamics AX Alert functionality uses the pre-defined e-mail template to send the alert notification mail.
I considered the requirement of sending the e-mail notification to employee when his absence request will get approved or rejected. Employee will register for his absence at absence registration journal located at Human Resources Module -> Journals -> Absence -> Registration form as shown below:

Once employee will transfer his request then the vacation approval request will appear for the absence approver at Human Resource -> Journals -> Absence -> Approval form as shown below:

Now the absence approver can approve or reject the request, in either case we will notify the employee by mail using the specific e-mail template stored at Basic -> Module -> Setup -> E-mail template form.
E-mail templates can be defined at Basic Module -> Setup -> E-mail template form. I have created an e-mail template ‘Blog’ which I will use in this exercise to send the mail.


To define a parameter you need to enclose it in % as shown above. In the above template I have defined 6 variables to which I will pass the values through code at run time.
Setup Email Parameters:
To send the e-mail I am using the SMTP server & respective port. You can define them at Administration -> Setup -> E-mail parameters form as shown below:
Note: Please follow the Dynamics AX business process guide for absence related setup.
In this article I will use employee Id 1000, name Charlie Carson to request for absence approval. I will use employee 3100, name: Tony Krijnen as an absence approver. E-mail id for both employees has been setup, & I will be fetching them while sending the mail.
To implement the absence notification to employee through mail, I have written a class named AbsenceNotification. This class has following methods:
1. New: I have overridden the new constructor in the class. This will be used to initialized HRMAbsenceTable and the approval status. For the same I am passing two parameters to constructor:
a. HRMAbsenceTableId – To initialize the HRMAbsenceTable
b. Status – a boolen true of false value, if called from HRMAbsenceApprove class, I am passing true and if called from HRMAbsenceReject class I am passing false.

a. Initialize the HRMAbsenceTrans table to get the last record in transaction table for absence request. This is required to get the end date of absence request.
b. Created a map object to pass the values to parameters I have defined in the e-mail templates.
c. Send mail by using the SysEmailTable::sendMail method, where we need to pass the e-mail template id to be used, default language, recipient mail id and the map which has the values for the e-mail template variables.

There are 2 AX classes which will be called by Dynamics AX as per the Approver’s action i.e. Approve or Reject. To approve absence request Dynamics AX uses the class HRMAbsenceApprove & to reject absence request it uses the class HRMAbsenceReject. Now we need to call the code in HRMAbsenceApprove & HRMAbsenceReject class’s mail method to send the mail at the time of approval or rejection.

The system will send the e-mail to notify the absence status to employee. It will use the e-mail setup for employee in employee contact information. Below is the snap shot of mail:


About X++:
X++ is the object oriented class based single dispatch programming language, in Microsoft Dynamics AX.
Disclaimer- I have not tested the code completely and it may have bugs in it. The code I have written is for demonstration purpose only therefore not following best practices in this example code.
Monday, January 11, 2010
Microsoft Dynamics AX Retail
Wednesday, July 15, 2009
Saturday, April 25, 2009
Change an AX Bound Field to Hyperlink bound field in web user control
1. Open the Web user control in visual studio. For detailed information on how to open a web user control & edit in Visual Studio please refer the AX Developer help.
2. Once you have the web user control added to web project in VS, open the HTML source of the control.
3. Replace the AxBoundField tag with the AxHyperLinkBoundField tag for desired column. Make sure to replace the end tag as well.
4. Now switch back to Design mode, select the grid and click on Edit Columns to edit the column property.
5. You will notice that the MenuItem property is enabled for the changed field as it is now hyper link bound field. This property will only be available for AXHyperLinkBoundFields.
6. Provide the menu item (AX Webmenuitem of type URL object) name to the property to set the hyperlink.
7. Follow the standard AX procedure to deploy the changes back to AX. For more detailed information on how to deploy the changes back to AX please refer Dynamics AX developer help.
Wednesday, November 19, 2008
Presence Information in Microsoft Dynamics AX 2009
We can enable the presence information in a AX Form Control of type StringEdit by setting up the following properties:
1. PresenceIndicatorAllowed: If set to Yes then it will show the presence indicator sign in same control.
2. PresenceDataSource: Data source which will have the PresenceDataField information.
3. PresenceDataField: It should be the field for address book identification such as DirPartyId, ContactPersonId etc. These are the extended data types.
These extended data types are having the properties to call the Presence Class (DirPresenceInfo) & the respective method. These Properties are PresenceClass & PresenceMethod.
For ex: The DirPartyId field the Presence Class property is set to DirPresenceClass & the PresenceMethod property is set to "partyInfo".
The contact information should be available in the respective table. For ex: for an employee the contact information should be available & the Communicator Sign In address check box should be checked to use the feature.
Wednesday, August 13, 2008
Friday, May 2, 2008
Microsoft Dynamics AX 4.0 online book
http://download. microsoft. com/download/ 2/5/8/258C8894- B94A-4A87- 81EA-4DBB9776F8F 2/622579eBook. pdf





