Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Friday, April 25, 2014

How to get current company currency through x++ code in AX

Hi,

CompanyInfo::standardCurrency();

Regards,

Form close method sequence in Dynamic AX

Hi,



Before closing the form i.e at the time of closing 

Close - Calls when we click esc / close.
CloseOK – Calls when we click Commandbutton::Ok
CloseCancel – Calls when we click Commandbutton::Cancel
CloseSelect – close the lookup form, and set return value
CloseSelectRecord – close the lookup form, and set return record

After closing the form following action methods calls,

Closed – calls once form closed
ClosedOK – The form was closed by the user clicking ‘OK’
ClosedCancel – The form was closed by the user clicking ‘Cancel’

canClose() is called before any of the close methods get called.
note: this canClose() will be called twice

Regards,

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...