Wednesday 29 January 2014

How to give startup message in Axapta 2012

Hi ,

Sometimes we want to give startup message. To do that follow below steps.

  1. Open the Configuration Utility (Start > Control Panel > Administrative Tools > Microsoft Dynamics AX Configuration Utility).
  2. Verify that the currently open configuration target and configuration are the ones you want to modify.
  3. On the General tab, in the Startup message box, enter the message you want to display, and then click OK.
    When the client is started, the text displays in a message box, with an OK button below.

Saturday 25 January 2014

Move all object from layer into the project in AX 2012

Hi ,


We can also export all the objects of layer and take backup. but for doing this we need to move all the objects from a layer into the project. Below I am defining how can we do it.
 Create a new project.



Then open the newly created project.
Choose Advanced Filter/Sort from the toolbar.
A new dialog pops up.


You can choose grouping of the objects as in the AOT or by user.

 Select the required objects.
Use the Select button on the dialog to select the objects you require for your project.
We wanna select all AOT objects from a specific layer, so we’ll use the UtilLevel field in the selection criteria.
                                             



From the screenshot you can see that all objects from the USR layer are selected, you can filter more by entrering the criteria you would like to do.

Thursday 23 January 2014

'The X++ debugger work only for users who are in the 'Microsoft Dynamics AX Debugging Users' local group of the Windows.'

Hi ,

To overcome from the Debugging Error: 'The X++ debugger work only for users who are in the 'Microsoft Dynamics AX Debugging Users' local group of the Windows.' please follow below steps.

To determine the AOS service account 
  1. From the Start menu, point to All Programs, click Administrative Tools, and then click Services. 
  2. In Services, right-click the Microsoft Dynamics AX Object Server service and then click Properties. 
  3. In the Properties window, on the Log On tab, the AOS service account is specified in the This account field. 
To add the AOS service account to the debug group 
  1. From the Start menu, point to All Programs, click Administrative Tools, click Computer Management, and then click Local Users and Groups. 
  2. In Local Users and Groups, double-click Groups, right-click Microsoft Dynamics AX Debugging Users and click Add to Group. 
  3. In the Properties window, click Add and add the AOS service account to the group. 
  4. Restart the machine. 

Thursday 9 January 2014

Find bank account from specification of main account


The following method finds a bank account from the main account attached to it. This is a general approach for relating the main account number to a record storing an account or account+dimensions combination.

Note use of DimensionAttributeValueCombination and MainAccount tables.


BankAccountTable bankAccountFromMainAccount(MainAccountNum mainAccountNum)
{
// Lookup bank account from main account

BankAccountTable bankAccountTable;
DimensionAttributeValueCombination valueCom;
MainAccount mainAccount;

select firstOnly bankAccountTable
join valueCom
where valueCom.RecId == bankAccountTable.LedgerDimension
join mainAccount
where mainAccount.RecId == valueCom.MainAccount
&& mainAccount.MainAccountId == mainAccountNum;

if(!bankAccountTable)
this.throwError(strFmt("Could not find bank account with main account '%1'",mainAccountNum));

return bankAccountTable;
}