My blog is now a Dynamics AX Related Community
As of today, my blog is present on the page of Microsoft Dynamics Related Communities.
You can see the list of related communities if you follow this link
This blog contains info about development in Microsoft Dynamics AX, including tips, tricks, tutorials, development tools and add-ons.
As of today, my blog is present on the page of Microsoft Dynamics Related Communities.
You can see the list of related communities if you follow this link
Posted by
Ivan Kashperuk
at
4:13 PM
2
comments
Here is a small project demonstrating capabilities of the class BOX in Dynamics AX.
Specifically, the following is covered in this tutorial:
You can download the project from the following link:
Classes\Box is a simple class used throughout the DAX application. It provides an interface for showing a standard dialog with a number of selection options and a short message. This is very useful, especially during development, because it provides a fast way to show some kind of text information to the user.
The class contains a number of methods that can be extended with new ones (as shown below). All the methods are static and have the keyword client in the declaration, which forces the code in them to be executed on the client side.
The most commonly used methods of this class are:
All the methods mentioned above are simply creating an object of class DialogBox, which is system and doesn't allow to see its implementation. This class is therefore not covered in this tutorial.
----------------------
The rest of the methods is rarely found in the application code, and is suited for specific situations where you need to provide the user with the option of choosing from more options. (for example, when imporing a project, you see a dialog created by the method box::yesAllNoAllCancel();
The implementation of these methods is very much alike: (example mentioned above)
client static DialogButton yesAllNoAllCancel(str _text, //messageThe project also includes a job that contains a couple of examples of using the new method. Enjoy!
Posted by
Ivan Kashperuk
at
1:38 PM
0
comments
Labels: Axapta, Dynamics AX, Form Development
1. DEV_FormControlInfo
Today I downloaded a very nice project for DAX 4.0 from www.axaptapedia.com
It inserts a number of lines of code into the SysSetupFormRun class, method task, providing a hotkey to access usefull information about any control on a form.
The hotkey is 'Ctrl + Q'.
Here is a screenshot of the result:
I moved the project to DAX 3.0, because I liked it a lot. Previously I used the Tabax button, which is convenient too, but does not provide as much info as posted above.
Here is the download link for the project:
2. DEV_AxFind
Also, my friend AndyD created a very good project for DAX 4.0
Description: After moving to DAX 4.0 a lot of users complained about the 'Ctrl + F' key combination. Now, instead of a 'Filter by Field' operation it opens a 'Global Search' window, which is uneasy to use so far.
Anyway, AndyD created a small dll file that replaces the 'Ctrl + K' key combination with the 'Ctrl + F' key combination, leaving the 'Global Serach' intact, but, at the same time, providing a well known interface for DAX users.
Thanks again, AndyD. :)
All you have to do is download the dll file (donwload link) and add the following lines of code into the Info class:
2.1. Info\\classDeclaration
classDeclaration
{
.....
DLL dllAxFind;
}
2.2. Info\\startupPost
void startupPost()
{
InteropPermission perm = new InteropPermission(InteropKind::DllInterop);
;
// DEV_AxFindReplacement Replace Keys F and K when used with the Ctrl key 19.04.2007 IKASH -->
perm.assert();
dllAxFind = new dll(@"D:\Install\Dynamics AX\Dynamics AX 4.0 SP1 EE\axfind.dll");
CodeAccessPermission::revertAssert();
// DEV_AxFindReplacement Replace Keys F and K when used with the Ctrl key 19.04.2007 IKASH <--
}
Notice, that the path to the DLL file, specified above, will be different - insert the correct path to the DLL file instead.
Reboot the DAX client. And you are done.
Posted by
Ivan Kashperuk
at
5:02 PM
0
comments
Now you can buy the MorphX IT (by Steen Andreasen) book about Dynamics AX Development in Russian language as well.
Please visit http://www.lulu.com/content/723888 to order the book now (Paperback or download versions available)
Also, there is a special offer for people living in Kiev, Ukraine and Moscow, Russia.
You can contact
Posted by
Ivan Kashperuk
at
9:10 AM
0
comments
Labels: books, Dynamics AX, Microsoft, MorphX, Russian
picture 2
picture 3
Possible future improvements:
Credits:
The modification was inspired by a similar one performed by Nicolai Hillstrom for Dynamics AX 3.0. I moved it to DAX 4.0 and added some extra features I considered useful. One of them is implemented here (even thought I wasn’t able to download it and see how it is programmed).
Posted by
Ivan Kashperuk
at
10:54 AM
5
comments
Labels: Development, Dynamics AX, Extensions, SysTableBrowser, table browser, Tools