static void EnumValues(Args _args)
{
DictEnum enum = new DictEnum(enumName2Id("ABC"));
int i;
for (i=0; i < enum.values(); i++)
{
info(strFmt("%1-%2", enum.index2Label(i), enum.index2value(i)));
}
}
Thanks to the popularity of Microsoft Dynamics AX (aka Axapta), there are tons of blogs containing useful insights and interesting facts on AX. The community is ever-growing and feels great to be a part of it. With this blog, I will add my two cents to the knowledge base and enforce my concepts as well. I will focus more on relatively unknown facts about AX as the fundamental aspects are thoroughly covered. So, let's begin.
Thursday, September 19, 2013
Read Enum Elements
A quick job to fetch enum elements using a for loop. Much better than having to manually type the values.
Labels:
Jobs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment