Home
»
Microsoft Dynamics AX
»
Microsoft Dynamics Axapta Workshop
»
All Tags
»
My Utilites
Browse by Tags
Aot job
aot mandatory fields
axapata utility
Axapta
dict methods
dictClass
DictField
dictfield.fieldCnt2Id
DictIndex
dictionary
dictMethod
dicttable
iterate index fields
mandatory fields
primary index code
record scripting
reflection
run methods in a class
setup data
sysrecordInfo
textbuffer
unit test setup data
utility
utility to run methods
x ++
Related Posts
Blog Post:
List all mandatory fields in the AOT Job
Fawad Hussain
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;...
on
9 Jan 2012
Blog Post:
A utility to script Ax table data in x++
Fawad Hussain
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...
on
18 Oct 2011
Blog Post:
Reflection code to iterate on the primary index of the table
Fawad Hussain
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;...
on
17 Oct 2011
Blog Post:
Reflection code to run methods in a class
Fawad Hussain
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...
on
11 Oct 2011