Thursday, December 18, 2008

How to iterate through all tables and look at their properties

This job runs through all tables in the application and displays a couple of properties:

static void TableGroup(Args _args)
{    
   Dictionary  dictionary = new Dictionary();    
   DictTable   dictTable;    
   ;   
   dictTable = dictionary.tableObject(dictionary.tableNext(0));
   
   while (dictTable)    
   {        
      info(strFmt("%1: %2", dictTable.name(), dictTable.tableGroup()));        
      dictTable = dictionary.tableObject(dictionary.tableNext(dictTable.id()));    
   }
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...