To get list of all Classes & Tables in AOT

To get list of all Classes In AOT

static void AllClassesInAOT(Args _args)
{
SysDictionary dictionary = new SysDictionary();
ClassId id;
;
id = dictionary.classNext(0);
while(id)
{
info(classId2Name(id));
id = dictionary.classNext(id);
}
}

To get list of all Tables In AOT

static void lookupAOTTables(FormStringControl _ctrl)
{
UtilElements    UtilElementsLocal;

while select * from UtilElementsLocal
where UtilElementsLocal.recordType == UtilElementType::Table // Here we can get list of Enum, EDT etc..
//&& UtilElementsLocal.utilLevel == global::currentAOLayer()         //Prints Current Layer Tables
{
info(UtilElementsLocal.name) ;
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s