Questions tagged [dynamics-ax-2012]

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) are called Dynamics AX. R2 revision was published on Dec. 2012 (kernel build 6.2.158.x)

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.

1211 questions
3
votes
2 answers

Creating many batches (SysOperation Framework) very quickly doing similar processes - "Cannot edit a record in LastValue (SysLastValue)"?

I have a SysOperation Framework process that creates a ReliableAsynchronous batch to post packing slips and several get created at a time. Depending on how quickly I click to create them, I get: Cannot edit a record in LastValue (SysLastValue). An…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
3
votes
1 answer

Query range not equal to zero

I'm in AX 2012 R2 environment. I would like to add a query range to HcmEmployment table and filter out rows that have a LegalEntity value = 0. The following code fails at runtime with the exception "Invalid Range". qbrLegalEntity =…
RT.
  • 435
  • 2
  • 9
  • 25
3
votes
1 answer

How to check whether the new line is created but not saved yet

Which FormDataSource method to use to determine that the record is not saved yet? i.e. I mean when my grid line is in this situation I want my mennuItemButton to throw the error. Thanks...
AYETY
  • 698
  • 4
  • 23
  • 38
3
votes
1 answer

AX 2012 how to set args record datasource in X++

Can anyone tell me what should I do in X++ to get a NOT null value from args.record().datasource() method after executing the following statements: PurchTable purchTable; args.record(purchTable); if(args.record().datasource()) //this condition…
3
votes
1 answer

Filter Blanks when link is by RefRecId

I have created a new table QueryCodes and used the new surrogate key functionality in 2012. A Foreign key relationship has been added to SalesTable using a RefRecId as per the new RecID foreign key guidelines. This all works great and I can now…
AnthonyBlake
  • 2,334
  • 1
  • 25
  • 39
3
votes
3 answers

Dynamics AX 2012 DLL config file not updating

We have added a C# project to our AX environment. We recently made modifications to the app.config file, cleaned and rebuilt the project, and deployed it to the AOT. If I go into the SqlServer Management Studio and query the VSASSEMBLIES table, I…
Daventrian
  • 31
  • 1
  • 3
3
votes
1 answer

Disabling F5 key on ListPage AX 2012

I want to disable the F5 refresh on a specific listpage, I disabled the refresh action key but the F5 still works. I can't overide the Task method on the SysSetupFormRun because it's a listpage. Is any way to do this? The reason I want to do this is…
NielsR
  • 53
  • 1
  • 5
3
votes
2 answers

How to confirm If current request from EP AX 2012

I am sure there will be some helper method/class to confirm whether the current request originated from Enterprise Portal or from Client in AX2012R2. I just cant find it. Can you please point me to it? Thanks
3
votes
2 answers

View differences between AX 2012 environments

I have two Dynamics AX 2012 environments (Test and Live). Multiple developers from multiple companies have been making uncoordinated changes to the two environments without version control. Before upgrading the two environments to R2 I would like to…
Martin Olsen
  • 1,895
  • 1
  • 17
  • 20
3
votes
3 answers

Enable/Disable FINISH button of wizard based on user input

I have created a wizard in AX 2012 using wizard wizard... Now i need to put 1 functionality i.e., to Enable or Disable FINISH button based on user input. I have already tried these 3 ways but without success.. this.finishenabled() -- on…
Mohd Saddaf khan
  • 289
  • 2
  • 14
  • 26
3
votes
3 answers

How to use AND/OR operators when building query in ax 2012 x++

I couldn't really find anything about this, and i couldn't really figure it out. Anyways, I have created a view which i need to filter using query/QueryRun etc. in x++. The select statement for what i am trying to do looks like this while select…
Heygar
  • 553
  • 1
  • 7
  • 19
3
votes
2 answers

Dynamics AX 2012 Foreign Key Constraints

Let's say I have two tables: Items Property1 (relates to PropertyName) Property2 (relates to PropertyName) Properties PropertyName (index, single key alternate) When making a normal relation in Dynamics AX 2012, I get the following Best…
Brad
  • 1,357
  • 5
  • 33
  • 65
3
votes
1 answer

Why am I getting "Menu Function object not initialized" error when using a menu item for a report in ax 2012 X++?

We are converting from AX2009 to AX2012 R2 (15 Jan 2013 edition). We are converting the old reports to the "deprecated" reports functionality in AX2012 R2 to save time in re-developing all our own reports. The process has been going fine but I am…
Johan Bresler
  • 6,450
  • 11
  • 56
  • 77
3
votes
1 answer

setTmpData() on dynamically added form DataSource

I have added a datasource to a form using the standard pattern: Args args; FormRun formRun; Form form; FormBuildDataSource formBuildDataSource; ; form = new Form(formstr(ICS)); formBuildDataSource =…
tradotto
  • 137
  • 2
  • 9
3
votes
2 answers

How can I generate CIL from X++ in Dynamics AX 2012?

Is it possible to generate CIL (either incremental or full) from within X++ code or the command line? My problem is that I want to import a model or xpo into AX, and I need the CIL to be generated automatically. This is for automated testing we are…
Maxthecat
  • 1,250
  • 17
  • 37