Configuring Label Data Sources
In Loftware Enterprise SP, label data sources can be created independently of fields in the label template or form. This allows multiple fields to be filled from the same label data source.
Loftware Enterprise SP supports the following types of label data sources:
Alternate Data Source
The label data source provides data from a file external to Loftware Enterprise SP. An Alternate data source is connected to a file via a File data service or an HTTP data service in Loftware Enterprise SP. For more information, see Create an Alternate Data Source.
Data Entry
The label data source provides data input by a user into a form when preparing to print a label. A Data Entry data source is created when you drag a Prompt into the Form view. To use the data provided, you can associate a Data Entry data source with a Variable Text, Barcode, or Image field in the Label view, or incorporate it into a Formula data source. For more information, see Create a Data Entry Data Source.
Database
The label data source provides data from a row or rows of a database. A Database data source is connected to a database via a data service in Loftware Enterprise SP. For more information, see Create a Database Data Source.
Date/Time
The label data source provides the date and time on the Loftware Application Server when this label data source is processed. For more information, see Create a Date/Time Data Source.
Formula
The label data source provides the result of a mathematical operation or physical operation (copy, combine, trim) on data from other label data sources, data service parameters, or static values using mathematical and logical operations and functions. You can use Formula data sources to do the following:
- Perform mathematical operations
- Copy data from one field to another
- Combine data from multiple fields
- Manipulate string data
- Combine the results other Formula data sources
For more information, see Create a Formula Data Source.
Increment/Decrement (Inc/Dec)
The label data source provides the value of a counter that is increased or decreased for each printed label in a print run. The starting value for each print run is entered by the user at print time or is configured as part of the label data source. For more information, see Create an Inc/Dec Data Source.
Script
The label data source provides the result of a mathematical operation or physical manipulation (copy, combine, trim) of other label data or metadata using JavaScript. For more information, see Create a Script Data Source.
Serial Number
If you have migrated from a Loftware Print Server (LPS) environment to a Loftware Enterprise SP environment, a serial number data source maintains the behavior of LPS style serial numbers. For more information, see Create a Serial Number Data Source.
About Data Refs
All variable fields have a Data Ref property. Data Refs link the source of data to fields in the label template.
Important! Data Refs are not dynamic. If a data source name changes, the associated Data Refs are not updated.