Microsoft Dynamics AX 2012 development Cook Book
- Paperback: 372 pages
- Publisher: Packt Publishing (May 4, 2012)
- Language: English
- ISBN-10: 1849684642
- ISBN-13: 978-1849684644
What you will learn from this book
- Explore data manipulation concepts in Dynamics AX
- Build scripts to assist data migration processes
- Organize data in Dynamics AX forms
- Enhance your application by using advanced form controls
- Create custom lookups using AOT forms and dynamically generate them from the X++ code
- Create and post Dynamics AX journals from code
- Create and manage purchase and sales orders from code
- Create a custom electronic payment format and process a vendor payment using it
- Integrate your application with Microsoft Office Suite
- Create various Microsoft Office documents that can be used for exporting/importing business data for further distribution or analysis
- Integrate the system with external systems using various approaches
- Improve your development efficiency and experience
- Learn simple but effective tips on how to improve overall Dynamics AX performance
Click here to download this Ebook
TheAxapta Repository/AX2012DEvCookBook
-Harry
How to install microsoft dynamics ax 2009 on windows 7
Here is steps to install AX on Win-7 (non-server OS),
Dynamics AX Basic Installation:
- Make sure you are logged in through your domain account (domain\user) on your laptop, not local system account.
- You should have local admin rights on your laptop.
- Install SQL Server 2008 with SP1. Service account for this should be local system.
- Install AX 2009. You need to be connected to your domain while installing AX. Ignore warning that says this operating system is not supported.
- AOS again should run under local system, instead of your domain account. Because this way you can use AX when you are out of your domain network.
Hint: At the time of installation select Network service and after successful installation convert AOS service account to Local System. 
- On the next screen, uncheck checkbox which says start AOS after installation.

- Click Install and you are done with the basic AX 2009 installation.
- To get it running with SQL Server 2008 SP1, you need AX 2009 SP1.
- Install AX 2009 SP1.
- Start AOS. (Optional: you may need to change the AOS service account to Local System).
- In AX, AdministratorSetupSecuritySystem service account, Set BC Proxy Account to your domain account (user , domain.com).
- Import Demo Data.
Dynamics AX Role Center & Enterprise Portal Installation:
- EP needs Sharepoint portal to be installed on your laptop. To install WSS / MOSS on your Windows 7 OS follow this link. http://theaxapta.blogspot.in/2013/03/installing-microsoft-sharepoint.html
- Once you have installed & configured Sharepoint, install Role center & Enterprise portal from the AX installation CD. It will run fine; I have checked it on my laptop.
- If you have Visual Studio 2008 installed, then you can also install enterprise portal development tools.
-Harry
Creating Vendors through X++ in AX 2012- PART II
Privious Post:
--Create vendor and associate with vendor--
public void convertToVendor(VendorRequestCreate _vendorRequestCreate)
{
VendorRequestCreate vendorRequestCreate = VendorRequestCreate::find(_vendorRequestCreate.VendorNo,true);
;
if(_vendorRequestCreate.DirPartyType == DirPartyBaseType::Person)
vendTable.Party = dirPerson.RecId;
else
vendTable.Party = dirOrganisation.RecId;
ttsBegin;
vendTable.AccountNum = NumberSeq::newGetNum(VendParameters::numRefVendAccount()).num();
ttsCommit;
if(vendTable.AccountNum == '')
vendTable.AccountNum= int2str(_vendorRequestCreate.VendorNo);
vendTable.Currency = _vendorRequestCreate.CurrencyCode;
vendTable.VendGroup = _vendorRequestCreate.VendGroupId;
vendTable.PaymTermId = _vendorRequestCreate.PaymTermId;
vendTable.DefaultDimension = _vendorRequestCreate.DefaultDimension;
vendTable.OneTimeVendor = _vendorRequestCreate.OneTimeSupplier;
vendTable.PaymMode = _vendorRequestCreate.PaymMode;
vendTable.BankAccount = _vendorRequestCreate.BankAccount;
vendTable.WI_Remarks = _vendorRequestCreate.Remarks;
vendTable.WI_DepartmentEmail = _vendorRequestCreate.DepartmentEmail;
vendTable.insert();
this.createPostalAddress(_vendorRequestCreate);
this.createCommAddress(_vendorRequestCreate);
this.createBankDetails(_vendorRequestCreate,vendTable.AccountNum);
this.createContact(_vendorRequestCreate,vendTable.Party);
if(vendTable.RecId)
{
vendorRequestCreate.VendAccount = vendTable.AccountNum;
vendorRequestCreate.update();
info(strFmt('Vendor %1 has been successfully created',vendTable.AccountNum));
}
}
-Harry