Questions tagged [x++]

X++ is the development language used by Microsoft 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 are integrated into the language.

X++ is the development language used by Microsoft 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 are integrated into the language.

See also Wikipedia article.

NOTE: When you ask questions about the X++ language, please specify the AX version you are working on! (with tags: dynamics-ax-2009 dynamics-ax-2012)

1420 questions
21
votes
2 answers

"this" vs. "element" keyword in X++

When writing code in X++ you sometimes need to reference this.functionYouWant() and sometimes it is element.FunctionYouWant(). Sometimes both are in scope. I often try one and if the function I want isn't there I try the other. Is there a rule that…
Michael Brown
  • 2,221
  • 2
  • 17
  • 34
13
votes
3 answers

How can you create a simple dialog box in Dynamics AX?

How can you create a simple dialog box in Dynamics ax?
James Moore
  • 2,501
  • 6
  • 26
  • 29
13
votes
5 answers

Microsoft Dynamics AX 2009 development

I'm new to Microsoft Dynamics AX development and I'd like to learn basic things about it. I have a virtual machine with the '09 version installed. Is it essential to get familiarized with the language (X++) from the beginning? What should I start…
Marcelo
  • 3,371
  • 10
  • 45
  • 76
11
votes
1 answer

How to change the level of AX info messages

In Dynamics AX 2009 I am trying to determine the level of indentation of an info message. What I want is something similar to this: Prefix Info1 Info2 Prefix2 Info3 I found this: http://www.doens.be/2010/05/the-ax-infolog/ But don't…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
11
votes
1 answer

Magento and Microsoft dynamics AX Integration

We are planning to integrate Magento with Microsoft AX 2009 (Product and Customers).Since I am a C# developer I am confused how to get started. On exploring I came to know that best way to integrate is through WCF. But I would like to know How do…
Jayaraj.K
  • 928
  • 9
  • 30
11
votes
4 answers

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 …
Marcelo
  • 3,371
  • 10
  • 45
  • 76
10
votes
1 answer

How to catch inner exception?

Is there any possibility to catch inner exception: try { ttsbegin; info("step one"); try { info("step two"); throw Error("error"); } catch { info("catch step two"); } …
ceth
  • 44,198
  • 62
  • 180
  • 289
9
votes
4 answers

What is the .toString() varient in X++ or Dynamics AX?

Is there something similar to the famous toString() method of C# in Axapta? I try to run underlying code: info(this.dataSource()); But it gives me this error message: "Argument 'txt' is incompatible with the required type."
Tassisto
  • 9,877
  • 28
  • 100
  • 157
9
votes
1 answer

How do i write a txt file using Microsoft Dynamics AX?

I want to write a txt file (just like i'd do in visual studio with c# using string writer and everything, with which i'm already very familiar) what class and method do i use? how does it work? what's the X++ syntax?
Marcelo
  • 3,371
  • 10
  • 45
  • 76
8
votes
2 answers

How do you "Run" a class

I'm still a newbie when it comes to Dynamics AX development. I'm working through a tutorial here. Once finished writing the code in C# and X++ the tutorial says to run the class and messages will be displayed (the result of the test code). I can…
KevinManx
  • 519
  • 1
  • 5
  • 26
8
votes
2 answers

In Dynamics AX, X++, how do you increment a date variable

I am not sure if it is something with xslt or xpath..but how do I increment a date by 1 day? For example, if the date is 2/16/2009 I want the date to be incremented by 1 to become 2/17/2009 etc. etc.
ash
8
votes
3 answers

How to add checkBox in Dialog and get value?

I want to add a CheckBox in my Dialog. I used this code: Dialog dialog; DialogField dialogField; NoYesId checkValue; ; dialog = new Dialog("New dialog with checkBox"); dialogField = dialog.addFieldValue(identifierStr(NoYes) ,…
ulisses
  • 1,549
  • 3
  • 37
  • 85
7
votes
1 answer

Reading a comma separated values (csv) file in dynamics ax

How do you open and parse a csv file in dynamics ax?
James Moore
  • 2,501
  • 6
  • 26
  • 29
7
votes
4 answers

What is the function to get the system date and current date in Dynamics AX?

What are the function calls to get the System Date and Current Date using X++ in Microsoft Dynamics AX?
James Moore
  • 2,501
  • 6
  • 26
  • 29
7
votes
2 answers

Refresh entire form in AX 2012?

I'm currently working with a form that has a grid at the bottom. Whenever I hit f5, the grid refreshes, but the rest of the form does not. What can I do to make the entire form refresh it's data? Thanks.
Mr. Dynamic
  • 499
  • 4
  • 6
  • 11
1
2 3
94 95