Friday, August 4, 2017

How to get base enum elements through X++

static void getBaseEnum(Args _args)
{
    EnumId enumId;
    DictEnum dictEnum;
    int            count1;
    Counter  values;
    enumId   = enumNum(MonthsOfYear);
   
    dictEnum = new DictEnum(enumId);
    values = dictEnum.values();
    for(count1=0 ; count1 < values; count1++)
    {
        info(strFmt("%1",dictEnum.index2Label(count1)));
    }
}

No comments:

Post a Comment

D365 Extensions: Extend the validateField Method on a Table

In this post I will going to show you, how to extend the validateField method on a table. As example I used the SalesLine, where I will ...