Alfasith AX

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

Sunday, June 19, 2022

Exdends property of D365

Hi,


To know the ISV objects implications.


[ExtensionOf(classStr(ClassToExtend))] - class

[ExtensionOf(formstr(FormToExtend))] - Forms and its methods

[ExtensionOf(formdatasourcestr(FormToExtend, DataSource1))] - Form Datasource and its methods

[ExtensionOf(formdatafieldstr(FormToExtend, DataSource1, Field1))] - Form Datasource fileds and its methods

[ExtensionOf(formControlStr(FormToExtend, Button1))] - Form Object and its methods

[ExtensionOf(tablestr(TableToExtend))] - Table methods

[ExtensionOf(tableStr(DataEntityToExtend))] - Entity methods


Regards,

Thursday, June 16, 2022

Count the no of rows updated using update_recordset in AX 2012/D365

Hi,

static void Job560(Args _args)
{
    PurchLine       purchLine;
    PurchTable      purchTable;
 
    update_recordset purchLine
        setting
            CustomerRef = "CUST_0012"
        join PurchTable
            where PurchTable.PurchId == "PO-000368"
            && PurchTable.PurchId == purchLine.PurchId
             && purchLine.CustomerRef == "";
    info(strFmt("PurchTable = %1, PurchLine = %2 records updated",purchTable.RowCount(),purchline.RowCount()));
}


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) ...