Thursday, July 31, 2014

Mandatory Fields on Dialog Form

Problem: Need to make dialog fields mandatory such that users cannot proceed without entering require info.
Environment : AX 2012R3.
Module : Service Management
Difficulty : Easy

This occurs when i try to move the service order around different stages. The standard dialog appears as shown below. 
To make these fields mandatory open the class: Classes>>SMAStageEngine. In the dialog method, add the following lines as shown. NB your intellisense my not show the mandatory method, you can however type it as shown.

This will achieve your aim BUT you will notice that despite your fields showing the require fields underlined in red, the behavior of the dialog will be somewhat strange as you will be able to proceed without entering any data.
To get around this, override the validate method of the runbase class, and add the following depending on the fields you want to apply in your scenario.

Once this is done you can be guaranteed that records will be validated to make sure data is entered in your dialog fields.

Happy Daxing!

Wednesday, July 16, 2014

Send Email using Dynamics AX

I have been away from blogging for a while because DAxing kept me occupied round the clock. I will try and add as many posts as i can while im having a short break. To get us started we need to create a class that we can later consume in this demo to show how we can achieve this goal.
Among other things your class should be able to check the validity of the email provided, check for templates if you are using any then lastly it should send the message.

Now that was the easy part, we can now explore the easier parts of this demo. Go to 
System administration >> set up >> system >> Email-parameters

Configure your parameters as required.
Next configure your batch server and email batch as shown below.
System administration>> set up >> Batch group
System administration>> set up >> Email Processing>>Batch
Organisation administration >> Set-up>>Email templates
Now all our configurations are ready.
Now for the easiest part of this walkthrough, create a job to test the email functionality from DAX. I'd be glad to help further!

Happy Daxing

Wednesday, January 1, 2014

Dynamics AX and BIG Data

Ever wondered how the coming world of BIG Data is set to affect your organisation or future ERP implementations?? This short video from Microsoft can give you some future insights, exciting times ahead!!