O'Reilly logo

Mastering Microsoft Dynamics AX 2012 R3 Programming by Mat Fergusson, Simon Buxton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Number sequences

The vehicle table is a main table, for which we normally provide the ability to control the primary ID, VehicleId, via a number sequence. A number sequence allows the user to control how numbers are generated in terms of format and what happens if a record is deleted. This section describes how to hook into it.

All forms that are Main, Worksheet, or WorksheetHeader should use the following pattern.

Defining a number sequence

The first step is to define a number sequence that can be applied to our vehicleId field. A number sequence is associated with a particular EDT, ConFMSVehicld in our case. So, it is that EDT for which we define the number sequence, not the field.

We create a number sequence reference to the EDT in code using the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required