Skip to main content

Posts

How to set up parent project in project accounting in ax 2012

create simple project and then go to the project hierarchy fast tab and there you must define sub-project ID format "-#" and then your sub-project will be enabled. For resource assigning in Project first you need to configure the HR module, in that you need to maintain the calendar for those employees and then you need to define the cost of that particular employee (for expense) and for Revenue you need to define the sales price of that particular employee. In the project accounting module you need to mention the calendar in scheduling fast tab and then you need to define WBS, in WBS activity you can be able to assign resources.

Export Import Model example in Ax 2012

Using Export command then no space should exists in your model name but if you have blank space in model name then single quote is required. Example of Exporting model Export-AXModel –Model 'Model1' -File d:\model1.axmodel Example of Importing Model Install-AXModel -File d:\Model1.axmodel -Details To execute above command you need to open Microsoft Dynamics AX Management Shell.

Application object Server name in current session

You can write below code to get Application object Server name in current session in axapta . sysClientSessions _ClientSessions; sysServerSessions _ServerSessions; select _ServerSessions exists join _ClientSessions where _ClientSessions.SessionId == sessionID() && _ClientSessions.ServerID == _ServerSessions.ServerId; info(substr(_ServerSessions.AOSId, 1, strfind(_ServerSessions.AOSId, '@', 1, strlen(_ServerSessions.AOSId))-1));

Type hierarchy browser in Microsoft Dynamics AX 2012

There is a new tool called the Type hierarchy browser, to understand how the new data structures live within Microsoft Dynamics AX 2012. You can get to this tool, from any object within AX actually. Classes, tables, etc Lets pick a new structure in Microsoft Dynamics AX 2012, EcoResProduct. This is part of the new Master Data Management (MDM) / Product Data Management (PDM), that will exists out of the box for this release of AX. Once we have selected the EcoResProduct table, within the AOT, simply right click, add-ins, and then click on the 'Type hierarchy browser' menu item. Once we do this, we then see the hierarchy that exists for the EcoResProduct table, which extends from the Common table object. You will notice, that both Common and the EcoResProduct tables have RecId, revVersions & relationType. In here we can see as well that the EcoResProduct table inherits methods, from the Common table object. Fields that exists at the EcoResProduct table, are marked with blu

workflow status is pending for long time in AX 2012

Problem-workflow status is pending for long time and work Items are not creating, in AX 2012. Solution: Check if workflow message processing batch job is running or not? Also check the history of the workflow from View-> history option to see if there are any errors during workflow processing? you can temporarily do is to start Tutorial_WorkflowProcessor form and then click Start button to forcefully process the workflow task stuck in the queue. One thing more you need to check if the workflow batch job group has any AOS server assigned or no t?

Ax 2012 code,Get Inventory On hand qty for item of inventory dimension

InventDimOnHand _inventOnhand; InventDimOnHandIterator _InventDimOnHandIterator; InventDimOnHandMember _InventDimOnHandMember ; ItemId itemId; InventDim _inventDim; InventDimParm _inventDimParm, inventDimParmOnHandLevel; InventDim inventDim; InventDimOnHandLevel _InventDimOnHandLevel; ; itemId = '76576'; _inventDim.InventLocationId = '1113'; _inventDim = InventDim::findOrCreate(_inventDim); _inventDimParm.InventLocationIdFlag = true; _InventDimOnHandLevel = InventDimOnHandLevel::DimParm; inventDimParmOnHandLevel.ItemIdFlag = true; inventDimParmOnHandLevel.InventLocationIdFlag = true; inventDimParmOnHandLevel.WMSLocationIdFlag = true; inventDimParmOnHandLevel.InventBatchIdFlag = true; _inventOnhand = InventDimOnHand::newAvailPhysical(itemId, _inventDim, _inventDimParm, _InventDimOnHandLevel, inventDimParmOnHandLevel); _InventDimOnHand

Steps to install EP in Ax 2012

1) Custom Installation makes you to install components required for the particular instance. 2) A minimum installation of Microsoft Dynamics AX consists of a business database, a model store, an instance of Application Object Server (AOS), and at least one client 3) Setup will now check for prerequisite. If not present, one have to select the configure checkbox and click on configure button. 4) Create new database 5) Select server name and provide the database name. 6) Select Additional Models 8) Configure AOS instance 9) Specify AOS Account 10) In the next screen it will again check for prerequisite and final install it. EP Installation 1) Run the setup of AX and select the components of EP. 2) It will validate the prerequisite as follows. a. The main prerequisite for EP is Microsoft Sharepoint Foundation 2010 b. After installing Share point i. Go to Microsoft Sharepoint 2010 products. ii. Sharepoint 2010 Central Administrator. iii. Application Management iv. Manage