Browse by Tags

Related Posts
  • Blog Post: List all mandatory fields in the AOT Job

    Hi- I wrote a job today that can list all the fields that are mandatory and belongs to particular tables that have particular configuration key. I thought I should share the code here, it might be helpful. #static void findMandFIelds(Args _args) #{ # Dictionary dictionary; # TableId tableId;...
  • Blog Post: A utility to script Ax table data in x++

    I have just compiled a utility that can be helpful in setting up data for the unit test. This utility will generate x++ insertion code for the rows in a table. Just to clarify there is an existing utility called Record info ( that comes out when you right mouse click + Record Info on a record in a table...
  • Blog Post: Reflection code to iterate on the primary index of the table

    Below is the job that contains code to retrieve the fields in a primary index of a table static void IndexFieldsReflectionJob(Args _args) { DictIndex dictIndex; DictTable dictTable = new DictTable( tableNum(testTable ); IndexId indexId; int indexCounter; fieldid fieldId; DictField dictField;...
  • Blog Post: Reflection code to run methods in a class

    Code to run all methods in a class through reflection static void callMethodJob(Args _args) { DictClass dictClass = new DictClass(classNum(TestClass)); DictMethod dictMethod; int i; for (i=1; i < dictClass.staticMethodCnt(); i++) { if (Global::strStartsWith(dictClass.staticMethod(i...