Saturday, September 25, 2010

Website desing

For any website design contact visit below address,
http://www.whizkidsoft.com/

AX 2009 - Getting List of Object Ids and its Name from AOT

Getting list of Objects Id and its Name from AOT objects like Classes, Tables, EDT etc.

static void findObjectIdNames(Args _args)
{
Dictionary dictionary;
ClassId ClassId;
TableId tableId;
ClassName className;
TableName tableName;
;

dictionary = new Dictionary();
do
{
//For Classes
ClassId = dictionary.classNext(ClassId);
className = dictionary.className(ClassId);

info(strfmt("%1 - %2",int2str(classId), className));

}while (ClassId)
}

Note: Use distionary class for finding id and names of tables, classes, EDT, enum, security keys etc.