x++ Questions

2

Solved

How to build query with multiple values. I need to create filter which display only active BOMs in grid and I looking for solution. Here is my code which isnt working: public void executeQuery() ...
Bazaar asked 17/10, 2014 at 13:4

2

Solved

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...
Inclement asked 17/2, 2012 at 12:54

1

Solved

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 dia...
Dialytic asked 8/3, 2019 at 13:29

3

How can you create a simple dialog box in Dynamics ax?
Phina asked 7/12, 2010 at 17:34

3

Solved

Suppose the combobox is linked to enum "ABC". The elements in it are A, B C and D. Now I need to get only A and C in the combobox and not B and D? Is this possible?
Vortical asked 16/9, 2011 at 7:24

2

Solved

In AX programming best practice, which is the best way: using a Query created from the AOT, using a select statement with X++ code, using a query created with X++ code the Query classe ... And ...
Talca asked 8/12, 2016 at 10:14

3

Solved

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.addFi...
Headsman asked 4/6, 2015 at 8:5

4

Solved

I'm facing some troubles still while learning, so I guess it tends to get worse once I play with the big kids: warnings in dynamics aren't as precise and informative as VS's, there are no mouse-ove...
Orbiculate asked 4/1, 2010 at 18:18

4

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

2

Solved

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 wan...
Hooge asked 23/11, 2010 at 20:8

1

I want to customize the standard drill-down functionality and add a text parameter to the drill-down URL. I will then parse and use the parameter in the SysStartUpCmdDrillDown or EventDrillDownPoll...
Heywood asked 24/5, 2016 at 9:33

4

Solved

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 incompa...
Prepared asked 7/3, 2012 at 13:22

2

Solved

I'll be using SalesTable/SalesLine for the sake of this discussion. I have a simple form with two DataSources, SalesTable and SalesLine, with SalesLine joined to SalesTable. There is a header and ...
Emigration asked 19/10, 2015 at 20:25

3

Solved

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 ----...
Pointenoire asked 12/7, 2012 at 14:12

2

Solved

I want to pass more than one record between two forms. The user opens Form-A, selects multiple records and then clicks a button that opens Form-B. In Form-B there are two (or more) StringEdit contr...
Zenobiazeolite asked 10/4, 2015 at 7:40

2

Solved

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 f...
Gomulka asked 17/10, 2013 at 6:39

1

Solved

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 integrat...
Endosperm asked 5/12, 2013 at 10:6

2

Solved

I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456 will launch my own code. In C\SysStartupCmd\construct, this base code: case 'viewalert': s...
Opine asked 23/1, 2014 at 17:34

1

Solved

I am investigating the capabilities of the new delegate & event subscription pattern in AX 2012. At the moment I am looking to detect when a particular field has been modified, for example whe...
Naivete asked 4/10, 2013 at 10:40

4

Solved

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 mandat...
Bronder asked 29/12, 2009 at 18:23

3

Solved

I am trying to make this question sound as clear as possible. Basically, I have created a report, and it now exists as a menuitem button so that the report can run off the form. What I would like...
Elroyels asked 4/4, 2012 at 15:21

2

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 ...
Partake asked 11/10, 2012 at 12:19

2

Solved

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? ...
Monoclinous asked 3/10, 2012 at 13:57

1

Solved

Please suggest me the IDE for learning X++.Also give me the url to download it.
x++
Nullipore asked 27/9, 2012 at 7:17

1

Solved

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"); } ttscommit; ...
Schizomycete asked 21/9, 2012 at 18:16

© 2022 - 2024 — McMap. All rights reserved.