Search This Blog

Thursday, May 30, 2013

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

Untitled
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, shift);
    return _formSplitterVertical.mouseUp(x, y, button, ctrl, shift);
}

after adding these three methods in your form design
it will spilt  into two windows, now write your code for validation what ever is
your requirement.

Happy 
Daxing...

Wednesday, May 8, 2013

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)
  1. Click on New Customer button on the top of the form.
  2. Set the record type to 'Person' and fill other mandatory fields .
  3. and click on Save then close the form.


4.  Double Click the newly created customer record  on the 
                     Customer master form.
5.  Go to Contact Information - > More Options -> Advanced


6. Click on 'Add' to create new contact information 
of customer and fill the e-mail address(Should be accessible 
through OC/Lync) and mark the option 'Instant messenger sign-in'.


7. Now we can notice that the Status symbol is displayed 
against the customer Id and some other OC/Lync options 
like Add to Communicator contacts (This option appears if it 
hasn't been added before),Send an Instant Message, 
Send an E-mail Message, Call, Share etc.,


I hope this will be a useful tool and could help in AX.


happy Daxing......!