EG: Add a new numbersequences to the Inventory module.
1. New plus one edt\ sml_test1;
2. In the Inventory module
Class\numberseqreference_inventory\loadmodule
Add SML_TEST1 encoded initialization code
Numref.datatypeid = Typeid2extendedtypeid (typeID (Sml_test1)); Numref.referencehelp = Literalstr ("SML test1"); Numref.referencelabel = Literalstr ("SML test1"); Numref.wizardcontinuous = false; Numref.wizardmanual = Noyes::no; Numref.wizardallowchangedown = Noyes::no; Numref.wizardallowchangeup = Noyes::no; Numref.wizardlowest = 0; Numref.wizardhighest = Maxint (); Numref.sortfield = +; This.create (NUMREF);
3. basic Settings \ Setup \ number sequence \ number sequence –> Point "Wizard" button, set sml_test1 number sequence
4. In the Inventory management module \ settings \ parameter setting \ number sequence, check that the number sequence has been generated.
5. How number sequences are called
static void Smltestnumseq (Args _args) { sml_test1 test1; Numbersequencereference numberseqreference; Numberseq numberseq; Numberseqreference = Numberseqreference::findreference (Typeid2extendedtypeid (typeID (Sml_test1))); Numberseq = Numberseq::newgetnum (Numberseqreference, True, false); Test1 = Numberseq.num (); info (test1);}
Numbersequences in AX