Number sequence framework has been very vital, used to generate readable, unique identifiers for master data records and transaction records that require them.
With Arrival of AX7, there is little change in framework. If we are working on any ISV solution etc. The very first step to achieve that , is creation of new Class. i.e. NumberSeqModuleModuleName (Same in AX2012 this step)
e.g.
-
NumberSeqModuleCust
-
NumberSeqModuleVend
-
NumberSeqModuleCustomModuleName
-
So, very first would be same creating a class being extended from NumberSeqApplicationModule.
-
In the same way, as in AX2012, there will be method named as numberSeqModule, where you need to specify Module name by using EDT named as NumberSeqModule.
-
The same way, as it was in AX2012, you will write method loadModule; here you will list down all you data types, as you were doing previously
Makes sense??? No change till here, same as of AX2012. Let’s go to change part which we do need to have on AX 7.
So, here at AX 7, we need to create a delegate method, which will Appends the current class to the map that links modules to number sequence data type generators.
Its code will be as below.
[SubscribesTo(classstr(NumberSeqGlobal),delegatestr(NumberSeqGlobal,buildModulesMapDelegate))] static void buildModulesMapSubsciber(Map numberSeqModuleNamesMap) { NumberSeqGlobal::addModuleToMap(classnum(NumberSeqModuleCustomModuleName), numberSeqModuleNamesMap); }Create it as a new method in your number sequence class.
Save it, build it and here you are ready with your Number sequence, at AX 7.

Like
Report
*This post is locked for comments