As said in the book Microsoft Dynamics AX 2009 Programming: Getting Started it´s needed to put semicolons after declarations in x++:
The extra semicolon after the variable
declaration is mandatory as long as
the first line of code is not a
keyword. The semicolon tells the
compiler that variable declarations
have come to an ...
static void Job(Args _args)
{
int number=10;
do
{
print (strfmt("current number = %1", number));
number --;
}while (number != 0)
}
This is a job just for testing do-while in X++ , and I get a "syntax error" in the last '}'
I'm new to Dynamics AX and to X++, so I don't know if there's something...
I'm facing some troubles still while learning, so I guess it tends to get worse once I play with the big kids: warnings in dynamics aren't as precise and informative as VS's, there are no mouse-over tips, and exceptions to show me exactly where I've got it wrong.
I'm just too used to Visual Studio, it's intellisense and all the tools (dy...
Each table in the AOT has an ID, how can I discover the table name given an ID?
...
Hi,
i'm trying to export data from Axapta database (Ms Sql Server 2000). Exists any documentation for this database?
Thanks a lot
...
Does anyone know how to access the PageSetup properities of an Excel worksheet via COM from x++ code. I can do all the formatting I require for a custom report but can't access PageSetup object.
Any pointers / suggestions appreciated.
...
Anyone have some sample code for adding a button (with a click method popping up a dialog) to the About screen in Dynamics AX?
Thanks
...
Does anyone know if it is possible to use Dynamics Ax 2009 Enterprise Portal with Forms Based Authentication?
I found some clues here and the Authentication with AD work fine, but when i try to load a Ax User Control I get this error:
"An unexpected error has occurred.
Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.N...
I am getting the following Best Practice error in Dynamics AX 2009 for any menu item assigned my primary security key (we'll call it MySecurityKey1).
"Wrong security key. Security key must match position in main menu."
I have the following items in my project:
Menus
MainMenu (Dynamics default item - security key is blank)
...
I'm still in the planning on how to proceed phase with this, but at a customer site, they are moving to invoicing through axapta. now the axapta has been used for years, and the invoices they are generating for it is -only- using invoice lines.
While this is an acceptable solution, it is still preferred if there's some way to extend/pr...
hey folks,
is it possible to get the current max-value of a column, only knowing tableID and fieldID in ax 2009?
i know you can get several informations about the field like isMandatory or something, but i need to know the maximum value instead...
thanks for any hints in advance!
...
My report has a parameter which uses a base enum. The enum has 4 different options to choose when running the report. How do I insert an option which uses all 4 at once?
For example, I have an enum named Phone and it has 4 types: 1 = None, 2 = Home, 3 = Mobile, 4 = Work. In a drop down, how do I add option 5 = None+Home+Mobile+Work?
T...
I am trying to add a service reference to axapta 2009. All is working well, its a simple web method(external webservice) that gets executed on the server tier(necessary, otherwise clr interop error)
But I've ran into the following problems :
is it possible to close the proxy one way or another? Because this option is not available in...
I'm writing a C# command line tool to fetch data from AX and to add data (create new tables) to AX.
Fetching data from an AX table is easy and documented here: http://msdn.microsoft.com/en-us/library/cc197126.aspx
Adding data to an existing table is also easy: http://msdn.microsoft.com/en-us/library/aa868997.aspx
But I cannot figure o...
Hello, I have created new LeaveMaster table in Axapta. please let me know how can i create number sequence of LeaveID. please help me. Thank you.
...
Is it possbile to move aotnode in axapta through code(I want to achive the same movement as done via alt-up, alt-down)
Dynamics AX 2009 has AOTmove method, but when I try
#AOT
ProjectNode root;
//SysContextMenuAOT ctx = new SysContextMenuAOT();
ProjectGroupNode firstChild;
ProjectGroupNode secondChild;
;
//root=ctx.first();
root = info...
Hello all,
I have created a grid view of Leavemaster table and leaveApplication table. There is filed LeaveId in leaveMaster and foreign key in LeaveApplication table. i want to do when i select leaveId in LeaveAppliation table automatcally related fields like leaveName should be filled according leaveId. please suggest me solution. Th...
Hello All,
I am New to axapta. I have two table WI_MachineDrawing and BOM. There is two common filed call RevNo and WI_MachineDrawngNumber. Now i wan to do something when i alter Wi_MachineDrwawng filed RevNo then BOM RevNo should be modified according to WI_MachineDrawing RevNo field. Please give me solution.
Please help as soon as p...
I am trying to find some good resources that will help me understand how to use the .NET Business Connector and without digging too deep into X++ and those other AX-specific things.
First of all I want a bit more knowledge regarding the very AX usage basics and after that I want to head on to the AX for .NET developers.
So, suggestions...
I have a problem, when deploying report libraries through Axapta tool or directly from node in Dynamics Ax. I'm receiving the error:
Unable to connect to http://xxxxx/reportserver/ReportService2005.asmx as specified in the config file for the report server at c:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServ...