AX – D365FO – Unable to to Add/Update the Data Source on a ListPage in Microsoft Dynamics AX 2012

You CANNOT drag and drop a data source into a list page.  This is different than most forms, so it always stumps me! Instead, right click on the ‘Data Sources’ node within the form.  The query property sets the data source. If you’ve modified the query and would like to refresh it, you must change the … Continua a leggere AX – D365FO – Unable to to Add/Update the Data Source on a ListPage in Microsoft Dynamics AX 2012

AX – D365FO – Add an hyperlink to a Form field to open the master data FOrm of that field

I have a form that contains a field called "IFRS code". I want to add an hyperlink to this field to open a form that contains the master table for that field when clicking on it (like below) If you do nothing you get this error while clicking on the field To solve the problem … Continua a leggere AX – D365FO – Add an hyperlink to a Form field to open the master data FOrm of that field

AX – D365FO – Change Action pane and buttons Style on a AX 2012 Form

I created a Form wirth an action pane and a grid . The action pane contains 2 command buttons (one for records creations and the other for records deletion). The buttons style is very very ugly, beacause they have only text and are not horizzontally aligned (see image below) I want to obtain a better … Continua a leggere AX – D365FO – Change Action pane and buttons Style on a AX 2012 Form

AX – D365FO – SSRS report parameters duplicating (appearing twice) in AX2012

Open your report in Visual Studio and under Parameters node, check if your parameter is repeating. If yes, delete one. Most of the time it happens during development when you are changing code again n again. It cahces your previous code and shows new and previous both. In this case : Clear all of your … Continua a leggere AX – D365FO – SSRS report parameters duplicating (appearing twice) in AX2012

AX – D365FO – How to access Args Parameters inside dialog() in a runbasebatch class?

I want to pass the Args.parm() value from Main() method of a RunBaseBatch to the dialog() method of the same RunBaseBatch. First of all declare a new string variable called "argsParm" in the declaration method of the RunBaseBatch class and add it to the #localMacro.CurrentList macro /// </remarks> class TaxReport extends RunBaseBatch { NoYes updateNow; … Continua a leggere AX – D365FO – How to access Args Parameters inside dialog() in a runbasebatch class?

AX – D365FO – Add a field in a lookup with AutoLookup field Group

I have a lookup in "Released product" form that is linked to a custom table. When I open the lookup I see only one field (Id code), but cannot see the description The description is a field of the custom table so I must add to the lookup to see it. How to to do … Continua a leggere AX – D365FO – Add a field in a lookup with AutoLookup field Group

AX – D365FO – How to use Normal Table as Temp Table?

setTmp() : has nothing to do with deletion at all. It turns a buffer to a temporary one, therefore it saves records to memory/on disk instead of into database. If you delete everything from the temporary buffer, it doesn't delete anything in database, obviously. So any data manipulations will be lost once the execution of this … Continua a leggere AX – D365FO – How to use Normal Table as Temp Table?

AX – D365FO – Modify methods of a Data Entity through extension – X++

In this example, DataEntityToExtend is the data entity and validateDelete and validateWrite are methods that can be wrapped in the data entity. [ExtensionOf(tableStr(DataEntityToExtend))] final class DataEntityToExtend_Extension { public boolean validateDelete() { boolean ret; //... ret = next validateDelete(); //... return ret; } public boolean validateWrite() { boolean ret; //... ret = next validateWrite(); //... return ret; } }