Lesson 7 - Number sequences

Number sequences are a string that contains a substring of # signs that are replaced by an increasing integer. This string will produce a list of IDs that are used throughout the Site Manager when objects are created. The number sequence can also include other fixed characters such as a prefix.

You create the number sequence in the Site Manager and you use it in code.

Create a number sequence

Number sequences can be created in the Site Manager but you can also create them in code when you update your database. This way your number sequence is ready to use when you use your functionality and it will not require as much configuration.

Task:

Create a number sequence in code. The number sequence should have a one letter prefix of your choice and a three digit number. Here is information on how: How to create a number sequence

Results:

When you run the Site Manager your script should run and when you look in the number sequence list (Tools > [Administration] Options > Number sequence tab) you should see your new number sequence.

Use a number sequence

Familiarize yourself with how the number sequences are used when creating objects by reading: How to use a number sequence.

You will use this in your big project in the end of this course.

 

Last lesson before we start on the POS is about auditing in the Site Manager: Lesson 8 - Auditing