GoogleAnalyticsObject

tirsdag den 8. november 2016

Axapta Manager (AxDynManagerV1.02)

I previously made a program to list, start and stop Dynamics AX Services.
But i always thought that is missed a few features, so now I am starting on this new version. (Download link
This is version 1.02 see change list at the end of the post.

This version will still handle list, start and stop of services, but also restart of services, and it will also support multiple servers.

And as something new i have added the possibility to start your Dynamics AX from the program, supporting multiple configurations.

The program is tested for AX 2009 and AX 2012.

When you start the program this is what you will see:

On the left you will see the list of services that you have, and on the right the list of possible AX configurations.

Config menu.


Under the menu item, Tools/Config, you can change the programs settings.

Here you can add/remove computers to look for services on.

To remove a computer from the list, double click on the item.
To add a computer, input its name in the text box, and press the "Add" button, or enter.
The refresh field controls how often the service list will be refreshed.

Controlling services.


If you right click on an item in the service list, you will get this menu, where you can start, stop or restart a service.
You can also control a service by double clicking on it, double clicking on a started service will stop it, and on a stopped service it will start it.

Changing AX Config list.


If you right click on an item in the Config list, you will get this menu.












Edit:
Edit an existing configuration.

Delete:
Deletes the selected configuration.

Import from Registry:
Imports all AX configurations from the registry.

Import from Config file:
Imports one configuration from an AX configuration file.


Starting AX.

If you double click on an item in the Configs list, that Dynamics AX will be started.
This function requires that the right version of AX is installed on the machine.

Planned changes.

General:
Service list:
Add a counter of online users on the AOS.
Group services, so you can start, stop or restart an entire group in one go.
Config list:
    Add check of AOS running before starting AX. (How?)

Changlog.

1.02     : Fixed error with parmBinDir not beeing read from AXConfig file.
              Added parmBinDir to EditAXConfig form.
              Fixed error when there are no AX Configs anywhere.
              Fixed error with BinDir not being read from AXConfig file.
              Fixed EditAxConfig form, field TabIndex, and the position of the OpenFile buttons.
              Added Class UtilLogging.
              Added logging in AXStartup.cs
              Added check if the paths in ParmBinDir and ParmLog exists before starting AX.
              Added check for double backslash in filePaths when importing configfile.
              Added handeling of multible AOS servers for parmAOS2.
              Added handeling of space in parmStartupMsg (Replace with Acsii 255)

1.01     : Save and Load AX Configuration list to file. (Done on start of program, and changes of list)
              Added for to Edit AX Configurations.
              Import of AX Configuration from .axc files.
              Made it possible to delete an AX Configuration from the list.
              Function to check last program version and do config cleanup.

Please do leave a comment if you find the program useful, have a bug or a suggestion for a change.

onsdag den 26. oktober 2016

Axapta Manager (AxDynManagerV1.01)

I previously made a program to list, start and stop Dynamics AX Services.
But i always thought that is missed a few features, so now I am starting on this new version. (Download link
This is version 1.01 see change list at the end of the post.

This version will still handle list, start and stop of services, but also restart of services, and it will also support multiple servers.

And as something new i have added the possibility to start your Dynamics AX from the program, supporting multiple configurations.

The program is tested for AX 2009 and AX 2012.

When you start the program this is what you will see:

On the left you will see the list of services that you have, and on the right the list of possible AX configurations.

Config menu.


Under the menu item, Tools/Config, you can change the programs settings.

Here you can add/remove computers to look for services on.

To remove a computer from the list, double click on the item.
To add a computer, input its name in the text box, and press the "Add" button, or enter.
The refresh field controls how often the service list will be refreshed.

Controlling services.


If you right click on an item in the service list, you will get this menu, where you can start, stop or restart a service.
You can also control a service by double clicking on it, double clicking on a started service will stop it, and on a stopped service it will start it.

Changing AX Config list.


If you right click on an item in the Config list, you will get this menu.












Edit:
Edit an existing configuration.

Delete:
Deletes the selected configuration.

Import from Registry:
Imports all AX configurations from the registry.

Import from Config file:
Imports one configuration from an AX configuration file.


Starting AX.

If you double click on an item in the Configs list, that Dynamics AX will be started.
This function requires that the right version of AX is installed on the machine.

Planned changes.

  1. Service list:
    1. Add a counter of online users on the AOS.
    2. Group services, so you can start, stop or restart an entire group in one go.
  2. Config list:
    1. Check if config's AOS is started, (Start if not)
Changlog.

1.01     : Save and Load AX Configuration list to file. (Done on start of program, and changes of list)
              Added for to Edit AX Configurations.
              Import of AX Configuration from .axc files.
              Made it possible to delete an AX Configuration from the list.
              Function to check last program version and do config cleanup.

Please do leave a comment if you find the program useful, have a bug or a suggestion for a change.

lørdag den 15. oktober 2016

Axapta Manager (AxDynManagerV1.00)

I previously made a program to list, start and stop Dynamics AX Services.
But i always thought that is missed a few features, so now I am starting on this new version. (Download link)

This version will still handle list, start and stop of services, but also restart of services, and it will also support multiple servers.

And as something new i have added the possibility to start your Dynamics AX from the program, supporting multiple configurations.

The program is tested for AX 2009 and AX 2012.

When you start the program this is what you will see:

On the left you will see the list of services that you have, and on the right the list of possible AX configurations.

Config menu.


Under the menu item, Tools/Config, you can change the programs settings.

Here you can add/remove computers to look for services on.

To remove a computer from the list, double click on the item.
To add a computer, input its name in the text box, and press the "Add" button, or enter.
The refresh field controls how often the service list will be refreshed.

Controlling services.


If you right click on an item in the service list, you will get this menu, where you can start, stop or restart a service.
You can also control a service by double clicking on it, double clicking on a started service will stop it, and on a stopped service it will start it.

Starting AX.

If you double click on an item in the Configs list, that Dynamics AX will be started.
For right now the list of configurations are imported from the users registry, but i am working on changing this.

Planned changes.


  1. Service list:
    1. Add a counter of online users on the AOS.
    2. Group services, so you can start, stop or restart an entire group in one go.
  2. Config list:
    1. Import AX configuration file.
    2. Manually change/add configurations.
    3. Save / Load configuration list.
    4. Check if config's AOS is started, (Start if not)
Please do leave a comment if you find the program useful, have a bug or a suggestion for a change.


søndag den 2. oktober 2016

Show AX Compile progress (AXCompileProgressV1.00)

For some time now i wanted a tool that would show me the progress of a Compilation in AX, so i made this little tool.

It uses the AOT compile log, that you can enable in AX2012, by going to Tools\Options\Development\Compiler


And put a tick in AOT log:

Ax will now generate a compilation log in the given folder named AOTComp.log

Now my program will look at that logfile and from that calculate and show a progress bar for the compilation progress.

Right now the program might be very buggy since this is the first version, and also it will only look for the logfile under the current users Microsoft\Dynamics AX\Log folder, but i will change that in later versions.
Also the program needs to "run as Administrator", i will see if i can fix that also.

You can download the program from this link (AXCompileProgressV1.00.zip)

Please do leave a comment if you find the program useful, have a bug or a suggestion for a change.

tirsdag den 31. maj 2016

Dynamics AX use of the startupcmd parameter

If you start ax32.exe with -startupcmd you can use this to automate some tasks.

Like for instance this command will perform a full compile of all elements in AX.
ax32.exe -startupcmd=CompileAll

Here is a full list of all the startupcmd parameters in AX2009 and AX2012.
The code that controls this can be found in Class SysStartupCmd method construct.
You can also add your own commands by adding them to this method.


Command AX2009
Command AX2012
Usage
setbuildno
setbuildno
Updates the version information text in the About Microsoft Dynamics AX dialog 
updatebuildno
updatebuildno
Synchronize the Build Number Between the Application and Database 
synchronize
synchronize
Synchronizes the data dictionary 
compileall
compileall
Compiles the application 
compilepartial
Compiles the application and updates Crossreference 
compilemodel
Compiles a specific model 
compilelayerinheritance
xrefall
Updates Crossreferences 
compileil
Compiles FULL CIL 
exit
exit
Shuts down the application 
aotimport
aotimport
Imports an XPO file into the AOT 
aldimport
Imports an Lable file into the AOT 
applupgrade
applupgrade
Starts Version upgrade processes 
loadlicense
loadlicense
Loads a license file into AX and shuts down 
checkbestpractices
checkbestpractices
Compiles the application and exports the Best Practice warnings to a file. If an XPO file is provided, only check the Best Practice warnings in the XPO. 
updatemetrics
autorun
autorun
Runs AX AutoRun tasks based on an XML file. 
runtestproject
runtestproject
Creates, runs and closes a test project 
batch
batch
Starts the application to run Client batch tasks in a specific group 
viewalert
viewalert
Opens a specific alert 
drilldown
drilldown
Opens the record that triggered an alert 
viewalertrule
viewalertrule
Opens the rule that triggered an alert 
importresources
importresources
Imports a resource into the AOT 
xmlreflection
xmlreflection
Creates an XML file based on reflection of the AOT 
xmldocumentation
xmldocumentation
Creates an XML documentation file 
startupelementaction
Starts the application to run element 
securityinference
generatessasproject
buildvisualstudioprojects
compileSync
Compiles the application and synchronizes the data dictionary 


torsdag den 17. marts 2016

Define Elements in Excel and create them in AX. (DevCreateV1.06)

Just a quick update of this project to V1.06, so the code is now tested on AX2012.
It might also work on AX4, but did not test that.

As always you are welcome to leave a comment to tell me what you think.
All suggestions for improvements or other projects are welcome.

Download from here (link)
File contains one AX2009 private project.
After import look at job DevCreate_NOTES for documentation.

onsdag den 16. marts 2016

Define Elements in Excel and create them in AX. (DevCreateV1.05)

I made this little tool that creates Elements in AX based on definitions in an Excel sheet.

I found that when I was creating Tables for solutions I always liked to define them in an Excel sheet first, to get an overview before actually creating the elements in AX.

And then when I was done defining the solution, and had to create the Elements by hand in AX, I always thought if only I could feed this Excel sheet to AX, and create the elements automatically.

So well the idea of this tool was born, and now I have the first version of it ready.

Now it might be a little buggy still, and the code is not all that nice, but it's better than nothing.

And also I have only tested in on AX2009 for now. (AX2012 coming ASAP and then perhaps AX7)

As always you are welcome to leave a comment to tell me what you think.
All suggestions for improvements or other projects are welcome.

Download from here (link)
File contains one AX2009 private project, after import look at job DevCreate_NOTES for documentation.

EDIT : Updated to V1.06, Code now also works on AX2012.

mandag den 29. februar 2016

Export Elements Tools V1.06

This Class is made to Export all or most recent changes to element in Dynamics AX.

The Class runs through UtilElements and selects records based on Current User, modifiedDateTime and createdDateTime and then exports the changed elements to a folder.

The file name of the exported elements are based on Element type, Element name, version and export version. (Version is taken from UtilElements, and export version is an internal variable that is incremented with each export.)

When running the class you are prompted for Directory (Where to put the exported file) and Processing Date (Used to query against modifiedDateTime and createdDateTime)

The Class saves some data in SysLastValue

----------- SETUP -----------
In classDeclaration there is a macro #AXVER that has to be set to the right version of AX, to make the class work.

---------- DOWNLOAD ----------
You can download the latest version of the Class here, works on AX4, AX2009 and AX2012
Download Link

---------- CHANGELOG ----------
1.00    2015-01-01 : First version.
1.01    2016-02-17 : Added method to export Projects
1.02    2016-02-17 : Implemented export of projects.
                             Always run in DAT Company.
1.03    2016-02-18 : Default value for export path. (Needs more thought)
                              Some minor changes in Search for new elements.
                              Reorder methods.
1.04    2016-02-18 : Added doc method for documentation. (This)
1.05    2016-02-22 : Rewrite how changed elements are found.
                              In method findNewOrChangedElements, UtilElement is searched for new
                              or changed elements, and they are then created as lines in table tmpUtil.
                              This was done to move the search to a method.
1.06    2016-02-22 : Changed the code so it can run on most versions of AX (4,5 and 6)

---------- IDEAS / ERRORS ----------
Prompt for witch user to export for, with blank = all, and default = current user.

Default value for export path, needs rethinking.

Save values from SysLastValue into a file, so they can be reused.

Look into making a form that shows what records to export.

When export is done, move files to another location, (Network drive or perhaps ftp server)
Possible also with an option to compress files before sending them.