Wednesday 2 December 2015

How to Get All Tables Under AOT Through Code in X++


  • Here  i used job

      static void ListofTables(Args _args)
     {
             Dictionary      dictionary;
             TableId         tableId;
             TableName       tableName;

            dictionary = new dictionary();
            tableId = dictionary.tableNext(0);
            tableName = dictionary.tableName(tableId);

            while(tableId)
           {
                 info(strFmt("%1 - %2",int2str(tableId),tableName));
                 tableId = dictionary.tableNext(tableId);
                 tableName= dictionary.tableName(tableId);
            }
     }

No comments:

Post a Comment