Alfasith AX

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

Tuesday, September 30, 2014

Main account and dimension relation in AX


Hi,

static void AlfasithMainAccDimRel(Args _args)

{
    MainAccount     mainAccount;
    DimensionAttributeValueCombination  dimensionAttributeValueCombination;

    select mainAccount where mainAccount.MainAccountId == "140250"
                        &&  mainAccount.LedgerChartOfAccounts == LedgerChartOfAccounts::current();

     select dimensionAttributeValueCombination where dimensionAttributeValueCombination.MainAccount == mainAccount.RecId;
    print dimensionAttributeValueCombination.RecId ;

    pause;
}

Regards,

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,

Wednesday, September 10, 2014

To get Calender, Date, Day or month in AX


Hi,

static void AlfasithCalender(Args _args)
{
    print dayOfMth(today());        // Date
    print dayOfYr(today());         // Day of year
    print wkOfYr(today());          // Week of  year 
    print mthOfYr(today());         // month in numerals;
    print mthName(mthOfYr(today())); // Month Name
    print year(today());            // Year
    print dayName(dayOfWk(today()));// Day like Monday, tues...
   // print mkdate(1,mthofyr(today()),year(today())); // Date with separator as "/"
    print today();
    print date2str(today(),123,2,2,2,2,4); // Date with sepearator as "."
    pause;

}

Regards,

Thursday, August 28, 2014

Differences between MorphX and Intellimorph

Differences between MorphX and Intellimorph
 MorphX is the Microsoft Dynamics AX IDE( Integrated Development Environment) which includes:
 - Data Dictionary
 - Tools for creating menus, forms and reports for Windows- and Web clients
 - Compiler and debugger for the object oriented programming language X++
 - Version control system
 - Label (multi language text) systems 
IntelliMorph is the Runtime Environment embedded in Microsoft Dynamics AX, that draws menus, forms, and reports for Windows- and Web-clients with the correct contents, size, and layout according to:
 - The language your texts are displayed in.
 - What features you can access.
 - How wide you want the fields on your installation.

 - The formats you are using for dates and numbers.

Tuesday, July 8, 2014

Status 0 error 0 in message data base retail on running the job

Hi,

No error but status 0
reason service setting server you entitled wrongly or Sync service setting you given in AX is wrong please check.

regards,

Error executing code. The field with ID '0' does not exsist in the table 'DMFEmployeeEntity'.

Hi,


DMFEmployeeEntityClass\GeneratePostalAddress
comment line 5 so that it will not call the generate class.
in that generate class bears error in standard.

Regrads,

Get a table ID in SQL / table browser - D365

Hi select ID from SysTableIdView where  SysTableIdView .Name = 'CustTable' <URL>/?cmp=<CompanyID>&mi=sysTableBrowser...