Thursday, 29 October 2015

Add serial number/Line num on Form [AX 2012]

Code for Serial number and write bellow code on Form Data source 
> Create method 

public void create(boolean _append = true)
{
    Table                     table;
    RefRecId                conter;

    super(_append);

    select count(RecId) from table;

    if (!table.RecId)
    table.SerialNo += 1;
    else
    table.SerialNo = table.RecId + 1;

    table_ds.refresh();
}


Happy DAXing :-)

2 comments:

  1. Oh dear, without microsoft partner I would be damned ;) I suck at technological and IT things, so I would have absolutely no idea how to get this done.
    Best regards!

    ReplyDelete

Import General journal from excel in D365 F&O

 Hi Guys, Import General journal from excel in D365 F&O Code:  using System.IO; using OfficeOpenXml; using OfficeOpenXml.ExcelPackage; u...