<< Click to Display Table of Contents > 

SAMLight Manual > Entities (Objects) > Serial Number > Serial Number and Date Time

Serial Number and Date Time
Previous pageReturn to chapter overviewNext page

note

Combined customizable Serial Number and Date Time are only available beginning from the 3_7_5_20180824 SAMLight version.

If the checkbox Activate Combine with Datetime under Serial Number Advanced is active, you have a possibility to mark the serial number and the date time simultaneously. In the same window choose the option Combined DT/SN and in the Date Time property page select Edit Format. In the appearing DateTime Advanced window write the code for the Date Time and Serial Number you would like to get, but writing the serial number put @ instead of % (Example: %06.0f --> @06.0f). It may for example look like (see the screenshot below):

@06.0f %y\%m\%d %H:%M

where @06.0f denotes the serial number format

and %y\%m\%d %H:%M denotes the date time format

Format codes both for Date Time and Serial Number you will find under corresponding pages.

DateTime_Advanced_Select_Window

Figure 252: Date Time Advanced Format Code

 

Example: How to create a barcode consisting of a variable text (serial number object) and a date time object (as <text> Month\Day\Hour):

1. A text object with the variable text, <name> it in the EntityInfo and set it as Nonmarkable Entity in the entity list.

2. A serial number and activate the date time format under Advanced (Combined DT/SN).

3. In the DateTime tab, go to Edit Format and enter <$name>%m\%d\%H. ($ is referencing the text entity, %m is month as decimal number 01-12, %d is day as decimal number 01-31 and %H is hour in 24 hour format 00-23)

4. In the serial number tab, click on barcode.

note

The entities are processed according to their place in the entity list. If a referenced object is supposed to update before marking, please make sure to place it above the entity that references it.

The barcode can be adjusted according to the needs. When the text in the barcode needs changing, simply change the text entity.