Hi, I don't have Ax 2012 environment but you can check if there is method initFromCustTable in SalesTable table. If yes, map your Field there otherwise use initValue method in SalesTable table. You should write below code in modifiedField method as well so that if user changes Customer in Sales order, ABCCode should also be updated. this.ABCCode = CustTable::Find(this.CustAccount).ABCCode;
↧