1 Mar 2016

Retrieve Enum Value through X++ in AX 2012

static void EnumValue(Args _args)
{
    DictEnum dictEnum;
    int i;
    dictEnum=new DictEnum(enumName2Id("Gender"));
    for(i=0;i<dictEnum.values();i++)
    {
        info(strFmt("Enum Label:: %1 ",dictEnum.index2Label(i)));
        info(strFmt("Enum values:: %1 ",dictEnum.index2Value(i)));
    }
}

No comments:

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...