Does anyone know the reason of this change in AX 2012?
In SalesLine the line number field is called LineNum with EDT LineNum of type Real.
In PurchLine, the line number field is called LineNumber with EDT TradeLineNumber and EDT Int64
Now I create a map for getting SalesLine and PurchLine mapped. I need the Line number mapped, but when I do CIL compile, I get "System.InvalidCastException" when passing a field from the map to a class method. I guess it's because the data types are different, but can't understand why this has been designed like this. Now
I cant work with a map for this 2 tables.
Trying to avoid this issue, I added this to my code, but still get "System.InvalidCastException" when running after CIL compile.
LineNum _linenumber; _linenumber = any2real(this.LineNum); //"this" is my SalesLine/PurchLine Map
//any2real throws "System.InvalidCastException" under CIL
*This post is locked for comments