Auto Create Classes

I think we all have this little archive of code that we use again and again in AX.

So i have made to different tools for handling these code snippets, and here is the first one of them, the Auto Create Class tool.

So really simply told when you run the Class, you select witch Class type to generate, then the name and/or further parameters for the Class you are making.

At the moment the Class can create these Class Types:

  • Std_Run,  Simple class with Main and Run methods.
  • Std_DialogBatch,  Class that can run in Batch and has a Dialog
  • Std_Exp2Excel,  Class for exporting data to Excel, typically a Table, but could be anything.

But i hope to add on to this list as more stuff comes up, if you have any ideas write a comment with it, and i will have a look.

If you want to use this tool you can download a zip file with the tool from the links below.
The Zip file contains,
  • 1 project export file with the elements needed in AX (PrivateProject_DevCreateClasses.xpo)
  • 3 xpo's with exports of the templates for the Standard Classes.
The 3 xpo files are needed for the Class as templates for the Classes it needs to create, so you need to keep them in a Folder you have access to from the AX Client.
You will need to make one correction in the classDeclaration of the DevCreateClasses Class.

You will need to change the file location in line 4 to where you have put the xpo's
This is how the line looks in the method:

---------- Download ----------
For Dynamics AX 2012 (link)

---------- Problems / Errors ----------
The Class still needs work, so it's a little messy, sorry about that.
AX 2009 version missing.

Please remember to leave a Comment it you like this article, have questions for it, or have something else you would like me to write about.


Populære indlæg fra denne blog

Dynamics AX use of the startupcmd parameter

Axapta Manager (AxDynManagerV1.05)

Label translator for AX2009/AX2012 (Bing Translate)