Questions tagged [dynamics-ax-2009]

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

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

Microsoft Dynamics AX was originally developed as a collaboration between IBM and Danish Damgaard Data as IBM Axapta. 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.

Se also Wikipidia article.

594 questions
3
votes
1 answer

DataMethod Parameters in SSRS

I wrote a datamethod for my SSRS report as seen below. I created a parameter called county and it is working fine. When I tried to change the multivalue property of the parameter to true it stopped working. I realized I need an array to do that…
3
votes
2 answers

ComboBox in X++

In my ComboBox there are items like A B C D and bydefault the value is A where i want to make it as C something like comboBox.comboType(2) in the init form, but this doesnt seems to work. May be ComboBox.selection(2) helps, m not sure, Kindly…
piku
  • 471
  • 4
  • 12
  • 44
3
votes
3 answers

Why should I use positive logic in an if block?

I don't understand why it is a best practice to use positive logic in an if block http://msdn.microsoft.com/en-US/library/aa629483.aspx Preferred: if (true) { ... } else { ... } Why it is a best practice to have positive logic in…
Gainster
  • 5,481
  • 19
  • 61
  • 90
3
votes
1 answer

Casting CLR unsigned integer datatype in Dynamics Ax 2009

I am getting error in Dynamics Ax 2009 when I try to set a variable of CLR type UInt32 like in the following example: System.UInt32 duration; ; duration = 50; // Error : Cannot implicitly convert type 'int' to 'System.UInt32'. // Ax explicit…
Lets Do Green
  • 127
  • 11
3
votes
1 answer

Trying to change the text "Purchase Invoice" in LedgerTrans

I need to change the text "Purchase Invoice something" in the LedgerTrans text generated for purchase invoices. More specifically, the need is to shorten it because it is used in another system through an interface. It is obvious that this text…
b2vincent
  • 610
  • 7
  • 14
3
votes
1 answer

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:…
Johan Bresler
  • 6,450
  • 11
  • 56
  • 77
3
votes
1 answer

How to delete a specific article from all BOMs?

my task is to delete a specific article from all bills of materials (BOMs) in AX 2009. I understand that the BOMTable table contains the header and the BOM table contains the lines. They are connected via the BOMId. The BOM table holds a field…
elToro
  • 1,003
  • 9
  • 31
3
votes
1 answer

Use 1:n DeleteActions

How is it possible to use DeleteActions for 1:n table-relations? Example: Table A ("id") ('foo') ,('bar') ,('blup') Table B: ("id", "tableAId1", "tableAId2") (1, 'foo', 'blup') ,(2, 'bar', 'foo') I have two relations on tableB: TableB:tableAId1 ->…
Nico
  • 1,175
  • 15
  • 33
3
votes
1 answer

Form data source edit method on a view - AX 2009

I am trying to add a edit method to my grid from my data source in the form. I have the following code for the edit method: edit boolean markLine( boolean set, Datasource _datasource, boolean _mark ) { if (set) …
user3660338
  • 296
  • 5
  • 23
3
votes
2 answers

Why do all RecIds start with 5637144576?

Here is a completely pointless question... but one that I would like to know the answer to: Why do all RecIds in Ax2012 (And all since v2.5 I think??) start with 5637144576? Why not start with RecId 1, like in TempDB tables? This must be some legacy…
Wessel du Plooy
  • 505
  • 5
  • 18
3
votes
3 answers

AX2009 Loop through all the controls in the form on init

How is it possible to loop through all the controls in a form when a form is initialized? I have tried the following in the init and run methods, but it does not work: for( i = 1 ; i <= element.form().design().controlCount() ; i++ ) { control =…
user3660338
  • 296
  • 5
  • 23
3
votes
4 answers

Updating labels via XPO export

I have modified labels in my dev. environment along with other code changes but when I export this XPO and then import it in another environment, the labels in the target AOT are not updated. If I open the XPO in Notepad, I indeed can see the newly…
Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81
3
votes
2 answers

Operand types are not compatible with the operator in AX2009

I am a beginner in AX .I have tried to to execute a code in AOT job.I got an error like this Operand types are not compatible with the operator. and the code which I have tried to work out is as follows. static void SelectQueryTest(Args _args) { …
Jayaraj.K
  • 928
  • 9
  • 30
3
votes
1 answer

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

Export AOT objects (XPO) with or without IDs?

I have this situation where we have a production Dynamics 2009 AX (RTM) environment whose AOT we used to do a code update project to RU8. So now, I have a production environment (RTM) and one that is the same but patched to RU8. The thing is that…
Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81