Working with numbersequences – new NumberSequence

September 22, 2017 No comment

A few years a go I made a few posts about numbersequences, in these posts I forgot to mention that you need to execute the following job before you can find your new created Numbersequence.

static void NumberSeqLoadAll(Args _args)
{
    NumberSeqApplicationModule::loadAll();
}

Microsoft Dynamics is sponsoring the Lotus formula1 team

March 16, 2012 No comment

Ax2009 Event Processing Error

February 22, 2012 2 comments

I have a customer that gets a error every time the EventJobCUD-batch (Change Based Events) runs. They got the following error:

After some reseach I found out that when 2 fields are changed at the same time, you go several times through the listChangedFieldsEnumerator (location ClassesEventProcessorCUDprocessUpdate)

1
2
3
4
5
6
7
8
9
while (listChangedFieldsEnumerator.moveNext())
{
    // In this simple case we use the new and the original changed field value as
    // recorded at event detection time:
    [thisFieldId, changedFieldValue, origChangedFieldValue] = listChangedFieldsEnumerator.current();
 
    if (rule.AlertFieldId == thisFieldId)
        break;
}

The code underneed simulates the same situation in a small job:

1
2
3
4
5
6
7
8
9
static void Job5(Args _args)
{
    anytype any;
    ;
    any = ABC::A;
 
    // next line will throw a error
    any = BatchStatus::Canceled;
}

And here we get the basic same error “Error executing code: Wrong argument types in variable assignment.”

I modified the code so the anytype is assigned only when the field is correct:

1
2
3
4
5
6
7
8
9
10
11
12
while (listChangedFieldsEnumerator.moveNext())
{
    // In this simple case we use the new and the original changed field value as
    // recorded at event detection time:
    thisFieldId = conpeek(listChangedFieldsEnumerator.current(), 1);
 
    if (rule.AlertFieldId == thisFieldId)
    {
        [thisFieldId, changedFieldValue, origChangedFieldValue] = listChangedFieldsEnumerator.current();
        break;
    }
}

Change the language at runtime

November 30, 2011 No comment

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

November 28, 2011 No comment

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:

(more…)

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

November 26, 2011 1 comment

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:

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

Technical Conference 2011 (Nice) – Just a weekend away

November 12, 2011 No comment

Ax 2012 technical conference - nice

Hi everyone,

Together with some colleagues, I will attend the Technical Conference in Nice next monday.
I’m very exited, as this is a the first Dynamics conference I’ll attend.
Since my plane leaves tomorrow morning at 10:15 (local time Belgium) my Saturday will be preparing my luggage and myself mentally to step in the airplane (not a huge fan of flying) 😉

I will breed you about the sessions I’ll attend.
See you there!

Inside Microsoft Dynamics AX 2012 (YouTube)

November 12, 2011 No comment

A while ago a cross some YouTube clips ‘Inside Dynamics Ax 2012’. I just found a blogpost that groups them all: http://daxdilip.blogspot.com/2011/08/inside-microsoft-dynamics-ax-2012.html

Have fun watching…

Microsoft Dynamics AX Technical Conference 2011, Nice

October 17, 2011 No comment

Last week I received my confirmation for the Microsoft Dynamics Ax Technical Conference in Nice.

The event is scheduled to be held from November 14 – 16 in NICE Acropolis, Nice, France. You can find more info on the event’s homepage.

I’ll keep you up-to-date 🙂

Microsoft Dynamics Ax 2012 Unleashed (book)

April 26, 2011 2 comments

I couldn’t believe it:

On Amazon.com I found the first paperback concerning Ax 2012 ‘Microsoft Dynamics Ax 2012 Unleashed’. The book will be released Ocober/November this year. There is not much info availible at the moment, but if you’re intrested in pre-ordering go to Amazon.com

(more…)

Next Page »