Skip to main content

Posts

Troubleshooting Error: No License code available for language

Troubleshooting Error: No License code available for language EN-US.   Please use a licensed language Hi Friends I was setting up an AX Instance from an existing  database backup and I hit this below error. Error:  No License code available for language EN-US. Please use a licensed language Event Viewer Error: The Microsoft Dynamics AX Application Object Server is running  on an operating system that is not supported.  The supported operating system is Microsoft Windows Server 2003 with Service Pack 1. Solution: The language for the startup user needs to be setup as per the installation update dbo.USERINFO set LANGUAGE = 'EN-AU', HELPLANGUAGE = 'EN-AU' where ID = 'Admin' Happy  Daxing....

How to split a Form in two window

Hi Friends, To create a new form and want to show this form in two interrelated windows, like the following form on the basis of the header the line level information will update, so for get this type of design in your form you have to write three               methods in from design. 1. int mouseDown(int x, int y, int button, boolean ctrl, boolean shift) {     int ret;     ret = super(x, y, button, ctrl, shift);     return _formSplitterVertical.mouseDown(x, y, button, ctrl, shift); } 2 . int mouseMove(int x, int y, int button, boolean ctrl, boolean shift) {     int ret;     ret = super(x, y, button, ctrl, shift);     return _formSplitterVertical.mouseMove(x,y,button,ctrl,shift); } 3. int mouseUp(int x, int y, int button, boolean ctrl, boolean shift) {     int ret;     ret = super(x, y, button, ctrl, s...

Create Delete Actions through code in AX

Hi Folks, Let us create a delete action in InventTable for a testTable. SysDictTable table; Treenode treeNode, datreeNode; table = new sysdicttable(tablename2id("InventTable")); treeNode = table.treeNode(); treeNode = treeNode.AOTfindChild("DeleteActions"); DAtreeNode = treeNode.AOTadd('UNKNOWN'); DAtreeNode.AOTsetProperty("Table", "TestTable"); DAtreeNode.AOTsetProperty("DeleteAction","Cascade"); DAtreeNode.AOTsave(); In the above code , we get into the AOT node by  node and go till the delete actions of the table and then  create the delete actions for that table. After executing this code, just open the AOT and click on save icon.  Now, just close the AX client and re-open it again.  Now, you can find the delete actions created through code. Happy Daxing.....!

AX 2012 and Microsoft Lync / Microsoft office Communicator

Hi folks........... AX 2012 is simply powerful.........Microsoft Lync & Microsoft office Communicator have been integrated with AX 2012 and its pretty simple to do it............ But the Pre-requisites are AX 2012 client should be installed on                                 your machine and you have to be logged into                                 Microsoft Lync / Microsoft office Communicator.  Open Customer Details form   ( Accounts Receivable - > Common - >Customer -> All Customers) Click on New Customer button on the top of the form. Set the record type to 'Person' and fill other mandatory fields . and click on Save then close the form. 4.  Double Click the newly created customer record  on the          ...

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...