Friday, November 14, 2014

Enum Element Label X++

//Enum Element Label X++

static void enumElementLabel(Args _args)
{
    SysDictEnum dictEnum = new SysDictEnum(enumNum(MonthsOfYear));
    Counter values = dictEnum.values();
    int idx;
   
    for(idx = 1; idx< values ;idx++)
    {
        info(strfmt("%1",dictEnum.index2Label(idx)));
    }
}

No comments:

Post a Comment

validateExistCommonRecord in D365FO X++

validateExistCommonRecord(     RefTableId _refTableId,     RefRecId _refRecId) {     boolean ret = true;     if (!_refTableId || !_refRecId)...