Questions tagged [axapta]

Microsoft Dynamics AX is one of Microsoft’s Enterprise Resource Planning software products. It is part of the Microsoft Dynamics family. The early versions (from 1.0 to 3.0) were called Axapta, while the later versions (from 3.0 SP6 to AX 2012 and last version AX 7) are called Dynamics AX.

Microsoft Dynamics AX is one of Microsoft’s Enterprise Resource Planning software products. It is part of the Microsoft Dynamics family.

Vote to join tags!

The early versions (from 1.0 to 3.0) were called Axapta, while the later versions (from 3.0 SP6 to AX 2012 and last version AX 7) are called Dynamics AX.

Axapta was initially released in March 1998 in the Danish and U.S. markets. Today it is available and supported in forty-five languages in most of the world.

MorphX is the IDE where development and modification is done. It resided (until Dynamics AX 2012) in the same client application that a normal day-to-day user would access, thus allowing development to take place on any instance of the client.

X++ is the development language used in Dynamics AX. It belongs to the curly brackets and dot-operator class of programming languages (like C# or Java). It is an object-oriented, class-based, single dispatch language. X++ supports garbage collection and SQL queries is integrated in the language.

See also: "Microsoft Dynamics AX" article on Wikipedia

2556 questions
4
votes
2 answers

Change the background color of a column in a grid

I have following form and I want to change the background color of a column, based on the values of other columns; In the orange columns, instead of displaying orange background, I want the cell color to be the RGB combo of Red, Green & Blue fields…
Bilal Saeed
  • 603
  • 2
  • 10
  • 24
4
votes
1 answer

Display Methods - Multiple Form Data Sources

This may seem a simple question, but for some reason I am vexed. I have a form with 3 datasources - InventTable, InventSum, InventDim. So, for example, my grid shows; Item, Name, Site, Warehouse, Physical Stock I have placed a display method on…
AnthonyBlake
  • 2,334
  • 1
  • 25
  • 39
4
votes
1 answer

Pivot Table in AX

I came across a problem in AX 2009 and I have to admit I'm basically clueless. I would like to build a view (based on an AOT query or not; but from what I understand you can do more using an AOT query than strictly with a view) using a table which…
Max
  • 3,453
  • 3
  • 32
  • 50
4
votes
2 answers

Where are the source files of AX stored?

I would like to run a periodic (each 4 hour) backup of 'only' the source file of Dynamics Ax 2009, so, the XPO source file. I'd like to know where they are stored physically.
stighy
  • 7,260
  • 25
  • 97
  • 157
4
votes
2 answers

When creating a new line in a grid, is there a way to have it create at the bottom instead of the middle of the grid?

Is there a way during record creation (Ctrl+N) to have the line be created automatically at the end of the grid instead of right in the middle? I know this is just visually where it creates it, but it still creates some confusion. This is what I've…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
4
votes
2 answers

How to add a button to a dialog and create a method for the click event

In Axapta, How to add a button to a dialog and intercept the click event? Thanks
stighy
  • 7,260
  • 25
  • 97
  • 157
3
votes
2 answers

Dynamics AX 2009: Displaying a name instead of an ID in a lookup field

I am creating a project in AX 2009 on a form. There is a lookup field called "SubsPersonName", which performs a lookup on the ContactPerson table using the following method. public void lookup() { boolean ret; Query query; …
Phil Matthews
  • 31
  • 1
  • 3
3
votes
1 answer

Axapta 2009 X++ download text file from a website

I would like to download a text file from a website, given I know the URL of it.
user733916
  • 143
  • 1
  • 6
  • 15
3
votes
2 answers

Add a lot of columns to the grid on a form

I have to add all 86 fields from a view based query inside a grid on a form. The problem is that a form is very slow and the application freezes. Is there any way to make it faster?
Artem Antonov
  • 109
  • 1
  • 6
3
votes
1 answer

Unable to close SysBoxForm in unit test X++

When I close a SysQueryForm (by clicking on Ok button), a system generated dialog box appears on the form as shown below:- I am writing a unit test to close this dialogue box but when I try to close the sysbox form by using the X++ code…
zester
  • 165
  • 3
  • 12
3
votes
1 answer

D365FO x++ syscomputedcolumn table name

How can you use the syscomputedcolumn class to retrieve a table or field name for an entity? this is fairly easy using virtual field entity postload method something like public class SysDatabaseLogHeaderEntity extends common { public void…
jhowe
  • 10,198
  • 19
  • 48
  • 66
3
votes
2 answers

Possibility to modify or extend code in D365FO to suppress thrown error

Original class function creates an SQL query and executes it. Since there is an syntax error in the query it throws an error. What's the correct way to achieve fixation? Class extension does not work, because CoC executes the complete original…
Nico
  • 1,175
  • 15
  • 33
3
votes
2 answers

How to get the form object in a ListPageInteraction class?

Working on Microsoft Dynamics AX 2012. I have a listpage form which has a referenced ListPageInteraction class, just wanted to change the label / caption of a few control. For this I need to do something…
maqk
  • 313
  • 2
  • 7
  • 18
3
votes
2 answers

X++ switch case with multiple inputs

Is there a way like in C# to create a switch with multiple variables? something like this.. switch((_dim1,_dim2,_dim3)) { case(1, ""): Info("1 is null"); case (2, ""): Info("2 is null"); case (3,…
Tweene
  • 257
  • 4
  • 16
3
votes
2 answers

X++ "invalid token" message when calling c# library (How to call the method correctly)

I'm trying to create an excel file using x++ code. However, I'm getting the compile error "invalid token" even though intellisense all works correctly when typing out the code. What is the correct way to call the Add() method in x++ for the…
rjv
  • 1,058
  • 11
  • 29