axapta

Is semicolon really needed after declarations in x++ ?

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

Syntax error in Ax

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

Debugging in Dynamics AX

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

How to find a table name by ID in Dynamics AX

Each table in the AOT has an ID, how can I discover the table name given an ID? ...

Axapta database documentation

Hi, i'm trying to export data from Axapta database (Ms Sql Server 2000). Exists any documentation for this database? Thanks a lot ...

Axapta V3 - how to access worksheet.pagesetup properties from x++

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

Add a button to the Dynamics AX About screen

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

Using Forms Based Authentication with Dynamics Ax 2009 Enterprise Portal

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

Axapta security key best practice error

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

Adding formatted text lines to invoices in Axapta 3.0 SP4

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

maxof( fieldid2name( ... ) ) from tableid2name( ... ) ?

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

Enum as a Parameter in Dynamics AX

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

Axapta 2009 WCF service

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

Creating Tables and Retrieving Query results with Dynamics AX 2009 business connector

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

Number sequence in AXAPTA

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

Axapta: Is it possible to move AOT nodes programatically?

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

Autolookup in gride view according selected cell value.

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

Automatic field values changed according to master table field modified In Axapta

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

Microsoft Dynamics AX - Resources for new developers

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

Unable to Connect to Reporting Services

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