Doens.be

  • Linkedin flickr twitter delicious Facebook Youtube

Posts Tagged ‘Tips & Tricks’

Ax 2012 Editor improvements

In Microsoft Dynamics AX 2012, a new X++ Editor is introduced which replaces the current legacy editor. The new X++ Editor is based on hosting a Visual Studio 2010 Editor Framework control.

Here are a few Tips & Tricks:

  • Type ‘main’ + TAB: The editor generates a standard Main-method.
    Note: This trick works with all templates (right-click –> Add-in –> Template)
  • Type ‘///’ on the top of a method. When you do so you get the standard header for generating XML-documentation.
  • While the intellicense drop-down is shown press CTRL. The drop-down dialog becomes transparent.
  • CTRL + ‘c’ at the begin of the line will copy the whole line.
  • CTRL + ‘i’ and start typing the word that you want to find. If you want the next, just type CTRL + ‘i’ again.
  • CTRL + scroll up/down to zoom in and out to the code.
  • Make a link to AX32.exe -development to go directly to the development-mode.

You can find more on chanel 9

Change the language at runtime

Normally when you change your language you go to your user options, change your current language and the restart the client. This week I got the question if it was possible to do so in runtime. You can do so by just calling the infolog.language(str 7 _languageCode). All labels that you load after calling this method will be translated to the new language. (more…)

Amount in words

This week one of my customers asked me to place the amount in words on a invoice. I couldn’t believe that sush function wasn’t availible in standard Ax. After some research I found that the Global-class contains the following methods:

  • static TempStr numeralsToTxt(real _num)
  • static TempStr numeralsToTxt_EN(real _num)
  • static TempStr numeralsToTxt_ES(real _num)
  • static TempStr numeralsToTxt_FR(real _num)
  • static TempStr numeralsToTxt_NL(real _num)

(more…)

How to run a Microsoft Ax 2012 Hyper-V on VirtualBox (Enterpris Portal Problem)

In my previous post I described how to run the standard Microsoft Ax 2012 Hyper-V VPC on your regular Windows Client with VirtualBox. There was one thing I forgot to mention, when you want to use the Enterprise Portal (and you probably will) you need to adjust the windows hosts-file on the VPC.

How:

  • Just open Notepad and open ‘C:\Windows\System32\drivers\etc\Hosts’
  • Add a line  containing ’127.0.0.1              dynamicsax.contoso.com ‘

Now the file should look like this:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost
127.0.0.1       dynamicsax.contoso.com

How to run a Microsoft Ax 2012 Hyper-V on VirtualBox

For the moment Microsoft provides us with with demo-VPC’s for Windows Server Hyper-V. In this post I will describe step-by-step how you can run the same vhd with VirtualBox on your Windows Client. (more…)

Technical Conference 2011 (Nice)

Just got back from the Microsoft Technical Conference 2011 in Nice and attended a lot of Sessions with three of my colleagues. Here are already some interesting things to remember, I’ll try to add more later.

 

Microsoft Announced Information Source (beta). All users that have access to CustomerSource or PartnerSource can use their login to access this site. The site is a set of tools to make predictable implementations. Also under Services you can find a Beta version for the Intelligent Data Management Framework (IDMF), Code Upgrade Service and the Security Advisor Upgrade Tool for Microsoft Dynamics Ax 2012.

 

When you make modifications to standard Ax, try to use events where possible. You can use delegates or pre-/post events. This should make upgrading easier in the future.

 

Also MPF presented a session on how a ISV can creat its solution. You can find part of the demo here.

 

This is a start and I hope to post more details about the sessions I attended soon.

Monitoring Table Size Growth in SQL Server

During my vacation I came across a older, but interesting article that shows you how you can monitor table size growth in SQL-server. With a bit of creativity you can create interesting report based on this information or you can just use the examples on the second page.

Portal development

While surfing the web, I came across a blog from 2 friends (Youri De Brabandere and Christof Decraene) about Enterprise Portal development. For the moment they have only a few posts, but I’m sure their will be more soon.

Have fun with the http://www.axepclipboard.com.

Ax Security got lost

At one of the customers I’m currently working they took the decision to take a look at the spaghetti of security keys. We made a plan of how the new basic security-structure should look like and implemented it. After releasing this new more logical security structure we started to get the message ‘%2 %1 not initialised.‘.

After some research we discovered this issue occurred only with a few user groups and that the message only exists in the KTD-files, so it is kernel related. We checked the AccessRightsList-table for some inconsistencies but no luck. In the end we found a work-around that helped us solving this issue. When we make a export of the security and afterwards we import the export we just made, the issue disappeared by itself. Because there are a lot of user groups that could be infected with this issue, we automated this fix by running the import – export in a job.

Edit Top 200 Rows

When you select/edit records in Microsoft SQL Server Management Studio (right click on a table), by default you can only edit the top 200 / select the top 1000 rows. You can easily change this parameter by going to Tools -> Options -> SQL Server Object Explorer and modifying the value of the appropriate property in the grid. The value ’0′ equals all rows.