<< Click to Display Table of Contents > 

SAMLight Manual > Entities (Objects) > Serial Number > Serial Number as Barcode

Serial Number as Barcode
Previous pageReturn to chapter overviewNext page

If the Serial Number is displayed as a Barcode it is possible to reference other text elements of the same job and include their contents into the current serial number. This feature is useful especially when the serial number barcode has to contain encoded information that are available as human-readable text within the same job too. To include the data of another text entity this object must first have an entity name. As a second step that name needs to be referenced in format "<$entity_name>" within the custom format field of the serial number barcode. Here "<$" and ">" are delimiters for that part of the serial number format that has to be replaced dynamically. If the name between these delimiters is not defined within the job no replacement is done and the full placeholder is displayed.

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.

As an example: There is a text object named "TText" within the job that contains the text "My Information". Within the serial number barcode the following custom Format is defined: "%1.0f / <$TText>". Resulting from that the serial number barcode object would display the current serial count plus the text " / My Information":

"1 / MyInformation"

"2 / MyInformation"

"3 / MyInformation"

"4 / MyInformation"

"5 / MyInformation"

...

The Main Window will show the Entity List, the View2D and the Entity Property Sheet like in the following pictures:

EntityListBarcode

Figure 247: Entity List with Text object and Serial Number Barcode

PropertyBarcode

Figure 248: Property Sheet with Serial Number Barcode

View2DBarcode

Figure 249: View2D with Text to be included and Serial Number Barcode

note

Serial numbers are updated once per marking process. If such a serial number barcode references to text entities of the job using the <$entity_name> syntax it will contain the information of the element named "entity_name" that is visible at that specific moment when the update is performed. If the entity with that name is changed after the serial number was updated, the contents of the serial number barcode are not updated automatically. This means the that the serial number barcodes will stay with the old value until the next marking cycle was finished or until the sequence was updated from the menu. The same is true if such a serial number barcode object is newly created: it will not show the contents of any referenced object until the sequence was updated.