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

Nested notExists joins X++ (Dynamics AX3.0)

When the following code executes: select sum(qty) from inventTrans index hint TransTypeIdx where inventTrans.ItemId == itemId && inventTrans.TransType == InventTransType::Sales &&…
Michael
4
votes
0 answers

401 - Connecting to D365 Finance and Operations using OData and .Net

I'm fairly new to D365 Finance & Operations and came across Microsoft's Service Samples on GitHub. Thought it was a good start to try and connect a simple .NET C# console application to D365. I know that this is a Dynamics AX Integration so if…
4
votes
4 answers

Filter form's main datasource through the linked datasource

I have a custom form which has two datasouces. Lets say to make it easer that my form has the Salestable and SalesLines datasources. for example I could say that I have a filter which is bounded with the ItemGroup edt . I want to filter the…
Nikos Kou
  • 175
  • 3
  • 17
4
votes
1 answer

Increase capacity of a column in AX 2009

I'm extremely new to AX and am starting with something very simple. I need to increase the size of a column named Invoice. In the AOT, the StringSize property on the column is greyed out so I cannot change it there. In SQL Server (2005) the column…
Brent Lamborn
  • 1,370
  • 3
  • 17
  • 37
4
votes
2 answers

Write string over multiple line in X++

I have a string and I want to write it over multiple line, hover I don't want to write it the below way since it would be tedious val = " lines 1 " + " lines + .... any idea?
khaled alomar
  • 673
  • 4
  • 25
4
votes
3 answers

Chain Of Command (method wrapping) in D365FO results in 'Object is not set to an instance of an object'

I am trying to use the new 'Chain Of Command' feature in D365FO by extending CustTable. We need to check if a value has changed on the update method, before we log it in a new table. [ExtensionOf(tableStr(CustTable))] final class…
AinsleyJ
  • 41
  • 1
  • 2
4
votes
2 answers

How to get base enum name in Dynamics AX?

I would like get in code name of base enum not value or label. With this code I get label not name: info(enum2str(AssetGroup::AssetGroup1));
valvore92
  • 317
  • 1
  • 9
  • 24
4
votes
1 answer

String filtering with Ax7 oData gives error

I am trying to use the Ax7 oData endpoints to search for sales quotations by Name. Using equality works just fine, but the more advanced filter functions gives me errors. This simple EQ query works…
Mikael Nitell
  • 1,069
  • 6
  • 16
4
votes
3 answers

System.Io.Directory::GetFiles() Polling from AX 2009, Only Seeing New Files Every 10s

I wrote code in AX 2009 to poll a directory on a network drive, every 1 second, waiting for a response file from another system. I noticed that using a file explorer window, I could see the file appear, yet my code was not seeing and processing the…
Fleetie
  • 163
  • 5
4
votes
2 answers

What is the difference between the use of AOT query and X++ select statement

In AX programming best practice, which is the best way: using a Query created from the AOT, using a select statement with X++ code, using a query created with X++ code the Query classe ... And when to use each one of them?
rawdha
  • 89
  • 1
  • 9
4
votes
1 answer

is it necessary to revert something when using return inside a changeCompany

I have to add a control inside a changeCompany() in an existing class. I suppose the code below is OK, but I have a doubt : Does the "return" order imply that a return to the original company is done ? Or is there to add a statement, unknown by me,…
b2vincent
  • 610
  • 7
  • 14
4
votes
2 answers

How to get one container from another container?

I have a container that includes many items and some of those items are containers. And I need to get those internal containers. What is the best practice fot that? My solution is kinda ugly for me :( container a = [1, 2,…
alexlz
  • 618
  • 1
  • 10
  • 24
4
votes
2 answers

Master/detail form in Axapta/Dynamics Ax

How do I create a master/detail form in Axapta/Dynamics Ax, with a master grid and a detail grid, where choosing a record in the master grid changes the content of the detail grid accordingly?
Enrico Detoma
  • 3,159
  • 3
  • 37
  • 53
4
votes
2 answers

What is the fastest way of pulling data from a foreign database

I need to pull data from a single table stored in a MSSQL database. The data then gets stored in a staging table in AX, from where it is processed according to the business logic. Performance is a key factor in this project. Now I was doing some…
elToro
  • 1,003
  • 9
  • 31
4
votes
1 answer

Is there a way to improve this dynamics ax update job

I'm working on an AX 2009 installation. The job is to update the WMSOrderTrans table. Here is what I have got so far: WMSOrderTrans wmsOrderTrans; ; while select wmsOrderTrans { if (wmsOrderTrans.BBBpackingSlipExists()) { …
elToro
  • 1,003
  • 9
  • 31