Where can I find the properties of the BaseEnum DatabaseLogType
in AX?
It is used in (Sys
)DatabaseLog
?
I know there is a MSDN-Link, but is there any way to get those properties in AX itself?
Open the AOT and browse to Data Dictionary -> Base Enums.
Expand the type, and the element are listed.
You can then view the element properties.
Edit: This doesn't work for DatabaseLogType as it is a System Enum and not a Base Enum. I will leave the answer for future reference when people are searching for Base Enums
Edit 2: Work around for system enums!
As system Enums cannot be viewed in the AOT you can use the following job to view them (works on any Enum);
static void DisplaySystemEnum(Args _args)
{
DictEnum dblt;
int i;
;
dblt = new DictEnum(enumName2Id("DatabaseLogType"));
for (i=0; i < dblt.values(); i++)
{
info(strfmt("Value:%1 Name:%2 Label:%3",
int2str(dblt.index2Value(i)),
dblt.index2Name(i),
dblt.index2Label(i)));
}
}
Also take a look at MSDN DictEnum Class to see what else you could do to customise the job for your own needs.