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
6
votes
2 answers

Dynamics AX 2012 - changing the general ledger posting of product receipt

I've have been tasked with extending the general ledger posting for product receipt in an DAX 2012. In 2012 it seems to me that Microsoft har started a transition away from using the traditional LedgerVoucher, LedgerVoucherObject and…
6
votes
2 answers

Dynamics AX 2012 Only One Copy of a Form Open

Anyone have any tips/code snippets for preventing more than one copy of a custom X++ form from being opened at a time? Best case: Attempt to open another copy of the form, and the original gains focus Acceptable: User receives a notice that the form…
Brad
  • 1,357
  • 5
  • 33
  • 65
6
votes
1 answer

Page breaks in Dynamic Ax Reports

How do you insert page breaks in Dynamic AX reports?
James Moore
  • 2,501
  • 6
  • 26
  • 29
6
votes
2 answers

Dynamics AX: Disable datasource from form in code while being able to use advanced filter/sort option

I've modified the InventTable form so the users can filter the items depending on their "Stopped" status on the default order settings setup form. They get a list of the "buyable" items, "sellable" items, all items or blocked items for sale or…
Adrià Ariste
  • 118
  • 2
  • 7
6
votes
2 answers

Advanced query range

How to make a query in Ax with advanced filtering (with x++): I want to make such filter criteria On SalesTable form to show SalesTable.SalesId == "001" || SalesLine.LineAmount == 100. So result should show SalesOrder 001 AND other salesOrders which…
user1738036
  • 73
  • 1
  • 1
  • 5
6
votes
1 answer

How to get the results of a direct SQL call to a stored procedure?

I'm calling a stored procedure via direct SQL from X++, and I can't figure out how to get the integer return value from it. 0 is good, -1 is bad. // Login to SQL DB loginProperty = new…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
6
votes
3 answers

Custom Lookup and Group By

TLDR: Why group by clauses are disabled in lookups when the field using the lookup is not empty? I want to do a custom lookup on a field in a form. The table CTable looks like this: Val Spec ------------ A alpha A beta A gamma B delta C …
Max
  • 3,453
  • 3
  • 32
  • 50
5
votes
1 answer

Why does a localmacro work in Class Dec, but not if I put it in a Macro object?

I created a macro object in the AOT called "MyMacro". In it I put: #localmacro.myStrFmt 'Here is some text before (' + %1 + ') and some after' #endmacro In my class it works if I have it defined locally in the run method or class dec, but not…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
5
votes
4 answers

Finding the Total Available and Available physical for an Item/Warehouse

I have a method for a display field which does the following; return InventSum::find(_salesLine.ItemId, InventDim::_salesLine.InventDimId).AvailPhysical(); This gives me the on-hand Available Physical for the line site/warehouse/location. I need to…
AnthonyBlake
  • 2,334
  • 1
  • 25
  • 39
5
votes
1 answer

How to get the file creation date of a file?

How to get the creation date of a PDF file in Microsoft Dynamics AX 2009 with X++? And how to open that PDF file in the button click?
Revathi
  • 307
  • 6
  • 18
5
votes
3 answers

Try to use Winapi::findFirstFile running on server

I have a problem trying to run Winapi::findFirstFile running on server. I havve already tried copying the method on the class WinapiServer, and changing some lines, like this: server static container findFirstFile(str filename) { …
JOSEMI_24
  • 53
  • 1
  • 3
5
votes
1 answer

How to display two grids with different data on the same form

I have a form with two grids. I have one table with rows where each row has a status of Yes or No. I'd like to display all the yes's in the top and the no's in the bottom grid. A similar scenario would be if I wanted to show SalesTable header…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
5
votes
3 answers

Remove a "group by" statement from QueryBuildDataSource at runtime

I need to remove a group by statement from a QueybuildDataSource object. Is there any method to do this? (The opposite of addGroupByField).
Artem Antonov
  • 109
  • 1
  • 6
5
votes
1 answer

FormRun.wait(): method is deprecated, what to use instead?

I am currently working on fixing some BestPractice-Warnings on a bigger project. There i have a few instances where forms are called and are awaited before doing more stuff, this is mostly some dialogs. To await form the following code is used very…
D.J.
  • 3,644
  • 2
  • 15
  • 22
5
votes
2 answers

AX 2009 attacments inside Lotus Notes richtext

It is possible using AX 2009 to create email body in Lotus Notes and attach pdf or xls files inside email in needed place providing text for each attached file, and make this embedded objects clickable and possibility to rename them?
Dmitrij Holkin
  • 1,995
  • 3
  • 39
  • 86