web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Create new number sequence in AX

(0) ShareShare
ReportReport
Posted on by 1,559

Hi Friends,

I am trying to add a new number sequence.

Here are steps I found on web to generate a new one.

1. create EDT: GroupId

2. modify method 'loadModule' in existing NumberSeqReference_xxx class. Save and compile it.

    numRef.DataTypeId               =   typeId2ExtendedTypeId(GroupId));
    numRef.ReferenceHelp            =   literalstr("Group ID");
    numRef.WizardManual             =   NoYes::No;
    numRef.WizardAllowChangeDown    =   NoYes::No;
    numRef.WizardAllowChangeUp      =   NoYes::No;
    numRef.SortField                =   7;
    this.create(numRef);

But, when I go to number sequence wizard, I don't see it.

I guess I missed a step somewhere.

It's confused to me that how this works. It looks I can manually create a new one in Number Sequence form.

Any help is appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    First of all the Extended Data Type which you are using be more specific rather than using a very generic one that many other EDTs might be exntending. Make your own EDT preferably.

    Then you also need to load the module.

    Try this to load all modules, I am unsure if it is available for 2009 as well though:

    msdn.microsoft.com/.../numberseqapplicationmodule.loadall.aspx

    If it does not work, you could load the specific module yourself as shown in the example for the AX 2012 documentation. "Loading Number Sequence Information for a Module" part:

    msdn.microsoft.com/.../aa608474.aspx

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Vilmos,

    Looks like AX 2009 works differently. I couldn't load it.

  • Suggested answer
    Ajit Profile Picture
    8,755 on at

    AX 2009 - 

    static void LoadModule(Args _args)
    {
    NumberSeqReference_Customer numSeqCustomer;

    numSeqCustomer = new NumberSeqReference_Customer(NumberSeqModule::Cust);
    numSeqCustomer.load();
    }

    AX 2012 -

    static void LoadModule(Args _args)
    {
    NumberSeqModuleCustomer numSeqModuleCustomer = new NumberSeqModuleCustomer();
    numSeqModuleCustomer.load();
    }

    Note - Change 'NumberSeqModuleCustomer' class with your class.

  • Verified answer
    Ganriver1 Profile Picture
    1,559 on at

    I made it work.

    What I did is add following method in modul's parameter setup table.

    static client server NumberSequenceReference numRefGroupID()

    {

       return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(GroupId)));

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans