Skip to main content

Posts

Solution for Error of .Net framework 4 while installing AX 2102

If you are getting this  Error while installing AX 2102. 1.Uninstall 4.5 if its installed. Then install 4.0. 2.Go to command prompt and execute the command "net stop WuAuServ" to stop the service. Go to Run and type "%winddir%" . A folder gets opened. Rename "SOFTWARE DISTRIBUTION" folder with any desired name. Execute "net start WuAuServ" command in command prompt. It will solve the issue.

Database Synchronization Error in Ax 2012

If you are facing following error during Database Synchronization Error in Ax 2012. "Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics" Following solution is suggested from different sources  1.check the UserSessionService in inbound ports it should be in activate status. 2. You need to  update all records with networkalias field = 'administrator' in dbo.userinfo table   .I hope It will works. 2. You may find another demo data database and delete all 'administrator' account but my testing domain. Then you need to sync the db .

How to invisible formpart in Ax 2012

To invisible formpart in Ax 2012 you can try below code in Job. PartList partList; Counter partCnt; FormRun FormRun_part; NumberOf NoOfParts; super(); partList1 =new PartList(element); NoOfParts =partList1.partCount(); for (partCnt =1; partCnt <= NoOfParts; partCnt++) { FormRun_part =partList1.getPartById(partCnt); if (FormRun_part.name() ==formStr(YourFormName)) { FormRun_part.design().controlName("YourControlName").visible(false); } }

Invisible Factbox in Ax 2012

To make Invisible Factbox in Ax 2012 you can write code below in particular event as per your requirement. PartList       _partList  = new PartList(element); FormRun     _formRun; int                k; for (k = 1; k <= _partList.partCount(); k++) {       _formRun = _partList.getPartById(k);       _formRun.design().visible(false); }

Set Folder,File read,write Permission from AX

To Set Folder,File read,write Permission from AX you can try below code . Just you need to pass Domain,Folder  parameter in function as root and stFolder as mention in function below. void setAccess(str root, str stFolder) { System.Security.AccessControl.DirectorySecurity DirectorySec; System.IO.DirectoryInfo dirInformaiton; System.Security.AccessControl.FileSystemAccessRule FilesysaccessRule; System.Security.AccessControl.FileSystemRights fileSysRights; System.Security.AccessControl.AccessControlType accessControlType; UserInfo UserInfo; SHRDocuFolder LtabSHRDocuFolder; System.Security.AccessControl.InheritanceFlags inheritFlags; System.Security.AccessControl.PropagationFlags propFlags; ; dirInformaiton = new System.IO.DirectoryInfo(_root); DirectorySec = dirInformaiton.GetAccessControl(); fileSysRights = System.Security.AccessControl.FileSystemRights::Write; inheritFlags = System.Security.AccessControl.InheritanceFlags::ObjectInheri

New Modules Introduced in Axapta 2012

 Ax 2012 Modules Overview Account Payable Account Receivable  Budgeting  Cash and Bank Management  Compliance and internal control  Cost accounting  Fixed Assets General Ledger  Human Resource  Inventory and Warehouse management  Master Planning  Organization Administration  Procurement and Sourcing  Product Information Management  Production control  Project management and accounting  Sales and Marketing  Service management  System administration  Travel and Expense