Alfasith AX

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

Wednesday, May 7, 2014

Adding indicators to the table in Dynamic AX

Hi,

display ImageRes showIndicatorImage()
{
    #resAppl

    int ret;
    ;
    ret = 0;
//By Alfasith for the requirement of red and green indicator
    if (this.ExpiryDate > systemDateGet() )//  == AnotherTable::find(this.ForeignKeyField).MyField)
        ret = #ImageAgingPeriod2_small;
   else
        ret = #ImageAgingPeriod5_small;

    return ret;
}

Regards,

No comments:

Post a Comment

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