Skip to main content

Posts

Showing posts from April, 2013

Args class in Axapta

  The Args system class is one of the most widely used classes in Axapta.  Args is an abbreviation for arguments and an Args object is used to pass information from one object (caller) to another newly created object. Using Args for object creation Args    args = new Args("CustTable"); FormRun formRun = ClassFactory.formRunClass(args); ; formRun.init(); formRun.run(); formRun.wait(); caller: public Object caller( [Object _value] ) This method gets or sets the calling object.  When creating an args object directly through code,  the caller will not be automatically set, so you should set it yourself. Record: public Common record( [Common _value] ) this method gets or sets a table buffer (record) attached to the Args.  A buffer of any table can be attached to an Args object using this method.  Be aware when retrieving the buffer that there will be no compile-time check of table id.  You should use the datase...

Date functions in AX 2009

Date functions in AX 2009 Date functions in AX 2009 These are some of the functions,from where we can get the day or month  or year from the date... Here is the below example.... static void date_Functions(Args _args) { Transdate    d; ; d = today(); info(strfmt("Date - %1",d)); //Gets the month for the given date... info(strfmt("Month - %1",mthofYr(d))); //Gets the month name from the given date... info(strfmt("Month Name - %1",mthname(mthofYr(d)))); //Gets the day for the given date... info(strfmt("Day - %1",dayOfMth(d))); //Gets the day name from the given date... info(strfmt("Day Name - %1",dayname(dayOfMth(d)))); //Gets the year for the given date... info(strfmt("Year - %1",year(d))); //Gets the current weekday number from the date... info(strfmt("Weekday number - %1",dayOfwk(d))); //Gets the day of the year from the given date... info(strfmt("Day of year - %1...

How to Aviod the null values from Lookup() in AX2009

 Avoid Null values in Lookup (AX2009) If you don't want to show Null Values in a lookup list The below code avoid Null Values in Lookup. Ex: Avoid Null values from lookup i.e If Qty is zero avoid those record in the lookup public void lookup() {  Query query          = new Query();  QueryBuildDataSource    queryBuildDataSource;  QueryBuildRange                    queryBuildRange,queryBuildRange1; // Create an instance of SysTableLookup where 'this' // is the current form control. SysTableLookup sysTableLookup =  SysTableLookup            ::newParameters(tableNum(ItemControl),this); ; // Add fields to be shown in the lookup form.         sysTableLookup.addLookupField(fieldNum(ItemControl, BatchNumber));         sysTableLookup.addLookupField(fieldNum(ItemControl, ItemId))...

How to change the Domain name on server in Dynamics Ax

First of all, after change the domain name, you need to change three things because the Dynamics AX works correctly: If SQL Server is installed on the server 1)  MS SQL Server logon service             If  you change the domain name you need to change 2)  Dynamics Server$ Instance Name  logon service 3)  Server Database of Dynamics AX Server Configuration Utility After that and restarting the services, you should be able to start the Dynamics AX. If you cannot start it, you need to review some database things explained Below.. In case you change the domain on the AX server computer, you will not be able to start AX because you don’t have appropriate privileges. In order to resolve this you need to find USERINFO table in the database and change the record with ID = ‘Admin’ You should update following columns:       1) SID – you should enter your Windows SID (this is eno...

Overviews of AXAPTA build numbers

Overviews of AX build numbers Dynamics AX 2012 R2 Version Kernel build Application build Comment Link Dynamics AX 2012 R2 CU1 6.2.1000.156  6.2.1000.156  25 Feb 2013 KB2807685 Dynamics AX 2012 R2 (6.2) Hotfix 6.2.1000.xxx 6.2.1000.xxx Published Hotfixes Dynamics AX 2012 R2 RTM 6.2.158.0 6.2.158.0 RTM Dynamics AX 2012 Feature Pack Kernel build Application build Solution build Comment/Link Dynamics AX 2012 FP1 (6.1) Hotfix 6.0.1108.xxx 6.0.1108.xxx 6.1.1108.xxx Published Hotfixes Dynamics AX 2012 FP1 (6.1) RTM 6.0.947.862 6.0.947.280 6.0.1108.0 Feature Pack 1 Version Kernel build Application build Comment Link Dynamics AX 2012 CU5 TBD  TBD Cumulative Update 5  Dynamics AX 2012 CU4 6.0.1108.2423 6.0.1108.2423 Cumulative Update 4   Dynamics AX 2012 CU3 6.0.1108.670 6.0.1108.670 Cumulative Update 3 Dynamics AX 2012 C...

How to Create New financial dimension in AX2009

Hi friends many of the client  requirement’s  to create a new financial dimension in AX apart from the three standard dimensions "Department", "Cost center" and "Purpose". Here is a steps to creating a new financial dimension. To create a new financial dimension modify following objects one by one 1) Base enum "SysDimension"  : Find this base enum and right click on this base enum -> Select option "New element". In properties window give a name to this element say "TestDim" and label as "Test dimension". Save the base enum. 2) Extended data type "Dimension"  : Find this EDT and then add a new array element in this EDT. Name this array element as "TestDim". In properties window specify label as "Test dimension". Now in the "Relations" tab of this new array element add a new "Normal"  relation first. To this normal relation open properties window a...

Modules changes in MS Dynamics AX 2009 Vs. AX 2012

Modules changes in MS Dynamics AX 2009 Vs. AX 2012 AX 2009 Module AX 2012 Module General Ledger General Ledger Fixed Assets  Bank Cash and bank management Accounts Payable Accounts Payable Procurement and sourcing  Accounts Receivables Accounts Receivables Sales and Marketing  Inventory Management Product information  Inventory  and warehouse management Expense management Travel and expense management Production Production control Project Project management and accounting Compliance and internal control  Basic                         ...