Questions tagged [dynamics-ax-2012-r3]

Microsoft Dynamics AX 2012 R3 is an Enterprise Resource Planning (ERP) application. Use this tag for questions relating to this final update to the 2012 version, being replaced by Microsoft Dynamics AX 7. Do not use this tag regarding earlier versions or other ERP applications.

223 questions
5
votes
1 answer

Extending an EDT for a Yes/No enum

I've created my yes/no EDT called IsSpecialCustomer. When I choose the Extends property of NoYesId, it triggers a database sync. If I use the base enum NoYes, it won't trigger a sync. Is there any reason to use the NoYesId EDT over the NoYes…
William YK
  • 741
  • 6
  • 21
5
votes
4 answers

How to do unit testing in Microsoft Dynamics AX 2012 in a real world project

Dynamics AX 2012 comes with unit testing support. To have meaningful tests some test data needs to be provided (stored in tables in the database). To get a reproducable outcome of the unit tests we need to have the same data stored in the tables…
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
  • 548
  • 1
  • 7
  • 22
3
votes
3 answers

There is already an object named I_XXXRECID in the database

This error is coming while synchronizing the DataDictionary. SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]There is already an object named 'I_100013RECID' in the database. SQL statement: ALTER TABLE…
3
votes
3 answers

Multi Threading in AX 2012 X++

Many of us are going through the optimization issues in AX 2012. In many of the cases optimization issues in process related code have no solution like we do have many other way around in reports. Case: I had a case in which I have to perform a…
3
votes
1 answer

How to save a record in table on Ax Form in a button click event?

I am new to AX, and I am struggling with the basics. My requirement is to save the record in a table from form controls on a button click event. What is the best approach? Because I also see "Override" method "CreateRecord". If I go with…
Ax Learner
  • 31
  • 2
3
votes
1 answer

Check objects type

I am using a C# application to do some work and send back the results in AX via a service. I've created a few classes in AX and use their instances in C# then I send the objects back with the help of a classic array. In AX I receive the stuff in a…
3
votes
1 answer

How to create a display method that relies on two other display methods?

I have a header/lines type of object (think SalesTable/PurchTable), and on the header I have two calculated display methods, "total qty" and "total invoiced". I want to add a simple display that says "Fully Invoiced", which is a display method that…
William YK
  • 741
  • 6
  • 21
3
votes
1 answer

Select three characters unless they follow an @ sign for the TextBuffer .replace()

I want to select and replace three characters, say "STR", unless they are after an @ sign. I use the text buffer class with the replace method. I am able to replace the three characters, but it also replaces the character before the three…
3
votes
1 answer

Drop dialog on a list page not disappearing automatically

When I add a drop-dialog to a list page, the drop dialog drops down when I click on it, but does not disappear when I click somewhere else. I am trying to add my own drop-dialog, but I can reproduce this issue with standard Dynamics AX objects. I…
2
votes
1 answer

Remove all whitespace from string AX 2012

PurchPackingSlipJournalCreate class -> initHeader method have a line; vendPackingSlipJour.PackingSlipId = purchParmTable.Num; but i want when i copy and paste ' FDG 2020 ' (all blanks are tab character) in Num area and click okey,…
Mumble
  • 127
  • 6
2
votes
1 answer

Dynamic AX 2012 R3 Write Empty Financial Dimensions of Customer

How can i write all dimensions of customer? I can use this code but it result just Department = 022. CustTable custTable = CustTable::find("10112"); DimensionAttributeValueSetStorage dimStorage; Counter i; dimStorage =…
Mumble
  • 127
  • 6
2
votes
2 answers

AX2012 and UIPath

I'm working with UIPath to automate some processes in Microsoft Dynamics AX 2012. When I use UIPath to indicate a button to press or a field to type into, UIPath gets a brainfreeze (stops working) and just chews on it for 3-6 minutes before it has…
2
votes
2 answers

Dynamics AX 2012: How can I get, by code, a list of all the methods within a specific form?

Is there any way for me to get, by code, a list of all the methods in a given form in Dynamics AX 2012? I am working in developing a small tool that will insert some comments in all of the methods of custom objects through using the Editor class.…
2
votes
1 answer

How to force encoding in XML to UTF-8?

I am trying to enforce encoding in the xml I am building in following way: XmlWriterSettings xmlSetting = new XmlWriterSettings(); XmlWriter xmlWriter; Str res; xmlSetting.encoding ('UTF-8'); xmlWriter =…
boucekv
  • 1,066
  • 2
  • 19
  • 42
1
2 3
14 15