Monday, 21 December 2015

Running AX7 VM on Oracle VirtualBox

In my previous post I described how to obtain the VM for AX7 CTP8. To run this VM you do not have to use Hyper V, VirtualBox works perfectly as well. In today's post I'll outline the steps required to run this VM in the VirtualBox.

Once you have downloaded the VM (20 files of almost 20 GB size), double click on the first file.


This will ask you the folder where to extract the files. Choose a folder and click Extract. Make sure that the drive where you are extracting the files have at least 120 GB space. More space will be required if you want to save the state of the machine instead of turning it off every time.


This step will take a while depending on your hardware capabilities. Once done you'll have a single VHD file.


Open VirtualBox and click on New button.


Name the virtual machine and choose windows OS as shown below.


Click on Next and choose RAM. MS recommends having a VM of at least 16 GB RAM. In my test machine I could only give it 6 GB, it was slow but not very slow.


Click Next and choose the extracted VHD,


Clicking on Create will create the VM. Before starting the VM, click on the Settings and change the number of CPUs as shown below. More CPU the better it will be.


The network on a VirtualBox VM is by default configured using NAT as shown below so no special setup is required here.


Now the VM can be started. Once started, on the the login page you'll see the familiar Windows 2012 credentials screen. The famous MS password for the VM Administrator account can be used to login.


Once logged in, open IE and click in the address bar. Here the AX7 link should automatically appear (highlighted below) as it was used previously when MS created the VM.


Once clicked, it will navigate to the Sign in page.


The password for this is mentioned on the AX 7 Sign Up page on Customer/Partner source. After entering the password, AX 7 opens up.


As my test machine was not very powerful, I initially got an error (I assume not everything was started), however after some time when I came back to this page and refreshed it, it worked fine.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Sunday, 20 December 2015

How to get AX 7 Technical Preview VM

Couple of days ago "Microsoft Dynamics AX" public preview went live. @satishthomas from Microsoft blogged more info on this (link). In summary following needs to be done to get it going

1. For customer source use this link  and for partner source use this link.
2. Login using either customer or partner source credentials.
3. Once logged in scroll down and you'll see a small paragraph as shown below


Clicking on the highlighted part will get you going on signing up for the preview. More details on these steps can be found on Satish's blog.

However if you want to get a VM to run it locally, you'll have to take some additional steps. Once you have signed up for the preview, come back to the sign up page on customer/partner source and scroll further down in the FAQ section and find the feedback question as shown below.


Clicking on the link will take you to Connect site where you'll be automatically added to preview program. There you'll see a download section as shown below

The download section will contain the link to download the preview VM



This posting is provided "AS IS" with no warranties. Use code at your own risk.

Friday, 18 December 2015

AX 7 Help Wiki available

Help wiki is now available for technical preview of new "Microsoft Dynamics AX" aka AX 7. It can be accessed from the following link

https://ax.help.dynamics.com/en/

The wiki details how to sign up for AX 7, get an instance running either in cloud or get a vhd to run locally, technical changes and a lot more.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Friday, 17 April 2015

Caching display methods

A display method is usually used to fetch data from another source or to perform calculations. It is recommended to create them on Tables. Once these display methods are used on forms, these are called every time the form is re-drawn. However if the field/group/tab which uses this method is hidden the display method is not called. For performance reasons the display method should be cached. This way system calls the method once and stores its values reducing unnecessary calls to server.

Recently we had a performance issue and on investigation found out that apart from the actual cause of problem, some display methods are not cached. So we followed the recommendations and cached the methods using attribute [SysClientCacheDataMethodAttribute(true)].

Every thing was fine until a user complained about performance using a specific customer. We investigated again and found out that one of the display method that we cached in previous findings is causing the issue. It had a IF condition and was doing some heavy calculation in certain cases only. But why this was not a problem before. On further investigation we found that the field on form which was using this display method was hidden. So when the display method was not cached it was not called by system.

However after caching it, upon opening of the form, system was calling the following method
<Table Name>::executeCachedDisplayMethods
This method was calling all the cached display methods of the table regardless of whether the field for the display method is hidden or not. This behavior is different from when the display method is not cached.

Our solution to problem was to remove the hidden field from the form.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Friday, 3 April 2015

Connect to a desired AOS in load balanced AOSs

If you have a set of clustered AOS and you want to connect a specific AOS, use the following command line parameters
AX32.exe -loadbalance=0 -aos2=<AOS SERVER NAME>:<AOS PORT>
This posting is provided "AS IS" with no warranties. Use code at your own risk.