Alfasith AX

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

Wednesday, September 28, 2022

Display method in D365

 /// <summary>

/// <MAI 09282022>

/// FDD details

/// </MAI>

/// </summary>

[ExtensionOf(tablestr(PurchLine))]

public final class PurchLine_XXYYX_Extension

{

    public display NoYes isXYZ()

    {

        return InventTable::find(this.ItemId).XYZ;

    }

}

NOTE: In the coming days extensions will be recessive, so avoid static the display method.

Wednesday, June 22, 2022

Orig() in AX / D365

 Hi,


Orig() is to get the last saved values. This method is used to compare the new values with last saved values.


if(purchTable.orig().DlvTerm != purchTable.DlvTerm)
    {
        //element.updateDlvTerm();
        //Your custom code
}


Regards,

How to invoke and iterate List as Contract methods in AX 2012/ D365

Hi, Public void performContractIterate(ClassContainsListAsContract    _ListCarryClass) { List contractFieldList = new List(Types::Class); ...