Alfasith AX

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

Tuesday, September 30, 2014

Worker and his financial dimension relation in AX


Hi,

static void ListOutAllWorkerWithDim(Args _args)
{
    Counter                                               i;
    HcmWorker                           hcmWorker;
    HcmEmployment                       hcmEmployment;
    while select hcmWorker   //=   HcmWorker::findByPersonnelNumber('000173');
    {
     hcmEmployment = hcmEmployment::find(hcmWorker.recid);//.DefaultDimension != 0
    if(hcmEmployment.DefaultDimension)
        info (int642str(hcmEmployment.DefaultDimension) +'--'+  hcmWorker.PersonnelNumber);
    }
    //hcmEmployment   =   HcmEmployment::find(hcmWorker.recid);
}

Regards,

No comments:

Post a Comment

Get a table ID in SQL - D365

Hi select ID from SysTableIdView where  SysTableIdView .Name = 'CustTable' Regards,