29 May 2015

How to create only one invoice for several purchase orders in DAX012

How to create only one invoice for several purchase orders in DAX012.

//Create Purchase Parameter Lines for one of the purchases:

purchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice);

//Use the standard code that adds purchases to invoice

20 May 2015

Compiler Errors Hints

Some errors you can face while compiling CIL in DAX 2012.

1) Error thrown after compiling one of queries
Description Path Line Method/Property name Diagnostic ID 
Invalid field 'Status' in data source. \Queries\FdwINVOIC\Data Sources\EnvelopeTable(FdwEnvelopes)  EnvelopeTable Err:327 
Invalid field 'Status' in data source. \Queries\FdwINVOIC\Data Sources\EnvelopeTable(FdwEnvelopes)\Data Sources\MessageTable(FdwMessageTable)  MessageTable Err:327 

19 May 2015

Professional outsourcing VS freelance

outsource vs freelance 4-2

When speaking with potential customers, we are often asked, "How are you different to freelancers?”. There are several key differences between the services offered by Neti and those offered by freelancers:

Qualifications and Experience

13 May 2015
23 April 2015

Post Purch Receipt List programmatically

In some cases you have to post purchase order's lines partly.
You can post Receipt List only for some of Purchase lines. Here is example, it's suitable for DAX 2009.

26 March 2015

Can't create a new employee in AX 2012 r3


I did everything according to the instructions: typed employee names in the "Name" fields, chose company, after that tried to create an employee, but the "Hire new worker" button is always inactive in the "Create new worker" dialog. What do I do wrong? How to solve this problem?


You have to setup the number sequence: Human resources – Setup – Parameters – Human resources shared parameters.


21 November 2014

5 outsourcing examples from Neti. Or what do outsource those who work for outsourcing.

— We are active outsourcing advocates and we think that this format will flourish in the future, - Oleg Khalilov, NETI CEO says. — Very often it is difficult to find a professional in native city, and the talents are scattered all over Russia and even all over the world. 

09 September 2014

Checking the controls within a particular group of the Dynamics AX form

Sometimes it is necessary to check the controls within a particular group of the Dynamics AX form.

It's not hard to do:


void getGroupControls(FormControl _formControl)
Counter j;
FormGroupControl groupControl;

if (_formControl is FormGroupControl)
groupControl = _formControl as FormGroupControl;

for (j = 1; j <= groupControl.controlCount(); j++)

29 August 2014

New relations don't appear in the standard Dynamics AX Query Designer (reports, advanced filters)

After creation of new relations in the tables, it happens that these new relations don't appear in the standard Query Designer (reports, advanced filters). Even recompiling and rebuilding cross-references don't help.

To solve this problem you can use this Job:

static void Neti_UpdateRelation(Args _args)


27 July 2014

How to calculate the date of Monday of the week if you know the week number of the year?


static TransDate getMondayDateByWeek(Week _week)
TransDate transDate;
TransDate firstJanuary = mkDate(1, 1, year(systemDateGet()));
int firstDayofWeek = dayOfWk(firstJanuary);
int dayOfYear;
if (_week == 1)
return firstJanuary;

dayOfYear = 7 - firstDayofWeek + 1 + (7 * (_week - 1)) - 7;

transDate = dateStartYr(systemDateGet()) + dayOfYear;
return transDate;

Subscribe for blog updates

Get updated with our blog new articles via your email!

Subscribe now