New Number sequence Implementation in Dynamics AX 2012

In Dynamics ax 2012, there are number of enhancement in number sequence framework and implementation as well, i will discuss the enhancement in my future blogs, here are the simple steps that needs to follow to implement it.

1 Created a new EDT
2. Added the code in the class NumberSeqModuleProject method loadModule() , see existing implementations in the loadModule method for reference.
3. Created a new method in the table ProjParameters to access the next sequence number. The method should return your module enum and also one method for each datatype (check existing implementations in the ProjParameters table)
4. Write a job that initiates your class and call the loadModule method

static void jobName(Args _args)
{
    NumberSeqModuleProject  NumberSeqModuleProject = new NumberSeqModuleProject();
    ;
    NumberSeqModuleProject.load();
}


Above job is important to run because without it your new number sequence will not be available to number sequence form under Parameters. This is the change in behavior from AX 2009 where all new number sequnce loads while restarting the Dynamic AX. In AX 2012 all the number seuqnce created to system while installation, so restarting the AOS wont effect in loading the new number sequence, that is why it is important to run the job to load new number sequences.

For implementation of new number sequence in new Module you should create a class following below steps

1.Add the NumberSeqModule enum with your module.
2. Create a new class for your numSeq which extends NumberSeqApplicationModule class with the standard methods (check existing implementation for any module like Project)
3. In the loadModule you put all your datatypes for which you want to create number sequence, again follow any existing class for the implementation.
4. rest of the steps are same that you need to create a job to load the new number sequences.

Advertisements

7 Responses to New Number sequence Implementation in Dynamics AX 2012

  1. Hi Nazim we have heard alot of about AX 2012, can you describe how much more costly it is rather then AX2009.

  2. My question is, what is the significance of the table “NumberSequenceDatatype” ? And How do i add my record in NumberSequenceDatatype from UI ?

    SCENARIO
    ==========
    using AX 2012 – I was trying to add a new number sequence from the Number sequence list page. When i came in the reference vTab, i chose basic in area, and wanted my field to appear here.

    I explored that the form “NumberSequenceAddReference” has method populate defined at the 2nd combobox “ReferenceComboBox”. This runs the following query

    select NumberSequenceDatatype where NumberSequenceDatatype.Module == _module && nsDatatype.ScopeType == _scopeType;

    but How do i add my record in NumberSequenceDatatype from UI ?
    what if i leave the reference tab empty will my sequence number work

  3. ERP says:

    My question is, how to import number sequence into ax 2012?

  4. amercobra says:

    Thanks friend 🙂 It was great hint for me.

  5. janeteblake says:

    This helped me out a lot, thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: