Tuesday, 22 March 2016

Enum Label

Here is the sample code useful to get the Enum label based on the passed enum value (which is integers)
int Mth,yearselected;
str Monyr;
DictEnum de;  
de = new DictEnum(enumName2Id(“MZK_MonthYear”)); //Enum Name
Mth = mthOfYr(today()); //need to get label for the value of current month
Monyr = de.index2Name(Mth);  //Passing the value to get the Enum 

No comments:

Post a Comment

Excel data connector in AX7/D365

Excel data connector in AX7: Configuring and using the Excel Data Connector Add-in The Excel Data Connector add-in is built by usi...