As already discussed in the Creating a new number sequence recipe in Chapter 1, Processing Data, number sequences are widely used through the system as a part of the standard application. For using sequences in forms, Dynamics AX provides a special number sequence handler class. It is called NumberSeqFormHandler and its purpose is to simplify the usage of record numbering on Dynamics AX forms. Some of the standard Dynamics AX forms like Customers or Vendors already have this feature implemented.
This recipe will show how to use the number sequence handler on Dynamics AX forms. Although in this demonstration we will use an existing form, the same approach could be applied when creating new forms from scratch.
In the standard application, employee number has to be specified manually and in the Creating a new number sequence recipe, we have already created a new number sequence to be used for employees. In this recipe, we will go one step forward by starting to use...