Hi,
Below is the code we can use for getting the label for an enum.In this example I'm taking InventTransType enum.
SysDictEnum dictEnum = new SysDictEnum( enumnum(InventTransType) );
dictEnum.value2Label(InventTrans.TransType);
Below is the code we can use for getting the label for an enum.In this example I'm taking InventTransType enum.
SysDictEnum dictEnum = new SysDictEnum( enumnum(InventTransType) );
dictEnum.value2Label(InventTrans.TransType);
or
// If you want to assign the label to string
dictEnum.index2Name(InventTrans.TransType);
in which language ???
ReplyDeleteIn Microsoft Dynamics AX, use enum2Label to get the label of an Enum value. Alternatively, you can use enum2str switch free game if you need the text name instead of the label
ReplyDelete