dynamics-ax-2009

How can I add more information to MS Dynamics 2009 AX's alert messages with X++ ?

Does anyone have some sample code or can direct me to which class I can modify to add more information to the alert messages in Dynamics AX (DAX). I want to for instance add a vendor number and userid when a name of a vendor has been changed. EDIT: I have been told by someone that HTML code must be entered in the description panel when ...

How can you modify the MS Dynamics AX Business Data Lookup Snap-in to select the company to logon to?

Can anyone provide some coding (C#) modification that can be done or any other practical way? or of course point me somehwere that has done it already. Many Thanks. ...

How do you reset the workflow status of a purchase requisition from completed to submitted programatically in X++?

MS Dynamics AX 2009: I need to do this from the Purchase Order Screen, so I only have the Purchase Requisition number available from the PurchLines Table. Your help would be really greatly appreciated as there is nothing yet on the net available (that I can find) and there are missing classes in the AX 2009 Tutorials. All helpful answ...

Where to start with a webportal/shop connected to Dynamics AX 2009

I've the opportunity to do a project with Dynamics AX 2009 and am now investigating the possibilities of creating a ASP.NET website/application that interacts with AX 2009. I’ve been searching a bit and found some video’s and info, but I can’t find some actual API/Webservice documentation or tutorials to start with. Does anyone have som...

How to create an unqualified catch block in dynamics AX ?

How to create an unqualified catch block in Dynamics AX ? This is said dev help for AX2009sp1, but there is no example of it. All valid catch blocks need the exception type as mandatory parameter, for instance: catch(exception::error) { : } have I missed something? br, ...

Dynamics AX: How can I open a docuview document attached to a Purchase Requisition from a Purchase Order?

Edit: The objective is to make quote documents that were attached to Purchase Requisitions available to staff that processes the Purchase Orders directly an in an easy way without having to navigate back to the requisition document itself. I would like to use the DocuRef::openDocHandling method from within the Purchase Order screen with...

Setting up Dynamics AX 2009 team development environment using TFS

For about a week now I try to set up a Dynamics AX 2009 team development environment, and keep hitting roadblock after roadblock (mostly about setting up TFS). Are there any working installation instructions for using Dynamics AX Team Server with Team Foundation Server 2008? Has anyone ever got this combination (AX TS & TFS) up and run...

Error "database in use" when Installing Dynamics AX 2009 Team Server.

I've set up Team Foundation Server to be used as VCS for Dynamics AX 2009. Now I tried to install the AX 2009 Team ID Server (on the same server as TFS), and get the following error during setup, no matter what I do: Unhandled exception has occurred in your application. If you click Continue, the application will ignore this erro...

Examples of Dynamics AX 2009 programming?

I'm just learning to program Dynamics AX 2009. So far I got the dev system running, I got some background about the architecture. Now I'm looking for some walkthrough-samples to learn more about programming in this system. Are there some samples available online? Can someone point me to some learning help? Maybe to some good AX-program...

How to select a path from Dynamics AX 2009 Form?

In Dynamics AX 2009 I created a wizard, and now I want to add a field to select a path from the local file system. Since there is no special control for selecting a path, how do I achieve this? Do I have to add a StringEdit with a special ExtendedDataType to get a path selection? I found no extended data type "path" or the like. Or is ...

Dynamics AX 2009 Client config file start path problem

I need to start the MS Dynamics AX 2009 client with different configurations to connect to different AOS. To achieve this, I exported the client configuration into an axc-file, which works pretty well. Now I want to share this file for all clients in our network, but it does not work on some because for some funny reason, the path to the...

How to get a list of methods on a table?

In Microsoft Dynamics AX, how do I get a list of methods on a table from C#? ...

Dynamics AX 2009 How to change customer invoice layout/printing?

I'd like to change the default customer invoice print to something else. Add an image to the head, change the layout, change the columns, well everything in fact. Can someone explain how to start this, or maybe point me to some tutorial or reference about this? So far all I found was ways to create new reports, but I'd like to change t...

Dynamics AX 2009 Report: LabelPosition above does not work?

I'm just in the process of changing the SalesInvoice Report. One thing I'm trying to do is show the label of some items not left of the item value but above it instead. Seems easy enough: just change the LabelPosition (for example from CustInvoiceJour_InvoiceId) setting from "left" to "above" and voila: the label has vanished. It is jus...

Axapta: Validate Access to return value from display method

The Dynamics AX 2009 Best Practice add-in is throwing the following error on a display method override. "TwC: Validate access to return value from the display/edit method." Here is my display method. display ABC_StyleName lookupModuleName(ABC_StyleSettings _ABC_StyleSettings) { ; return ABC_Styles::find(_ABC_StyleSettings.StyleID...

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

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

How do I get the details of a SOAP fault in Dynamics AX?

I'm currently communicating with an external SOAP service within AX using the a service reference and the generated .NET class. Everything is working out greatly with the exception of how to handle SOAP faults. Ideally, this doesn't happen, but sometimes the SOAP server (which I control as well) throws a SOAP fault with a "code" and a ...

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

Using Dynamics AX's Business Conectors to Generate Sales Orders

So, just like the title says, I need to create an application that gets data from another Database, and shoves it through Dynamics AX's throat. This data comes from a portal, not Enterprise Portal, but a PHP one. It stores some data from the order in a separate database. So as said, I need to 'import' that to AX, creating the sales ord...