Code 128, GS1-128, and Composite Script Methods
The following script methods are specific to this barcode symbology. Additionally, you can use the Common Script Methods for Barcodes.
Tip: If using these script methods in a business rule, select the Rhino script engine.
Tip: Script methods with names beginning with get or is retrieve the current value for a property. Script methods with names beginning with set configure a value for the property.
Note: For GS1-128 and GS1-128 Composite barcodes, the first two digits in the data provided are assumed to be the application identifier. Optionally, these digits may be enclosed in parentheses.
Note: Composite barcodes have a 2D portion followed by a linear portion. In the barcode data, the 2D portion appears first and is followed by a composite delimiter (|) and then the linear portion.
Methods | Description | Values |
---|---|---|
getBarHeight() setBarHeight(long) |
The height of the bars in the barcode. |
Thousandths of an inch (mil) |
getCheckDigit() setCheckDigit(String) getUserGeneratedCheckDigit() |
Whether to add an optional check digit to the barcode. The listed check digits are optional forms of the selected symbology (For Example: Code 128 or Code 128 with check). Special purpose check digits can be added to the barcode by using a Formula data source. Note: When a form that includes a check digit is used, the Data Provider |
None Mod 10 (Code 128 only) GS1 Mod 10 Mod 7 (Code 128 only) User Mod 10 (Code 128 only) User GS1 Mod 10 (Code 128 only) User Mod 7 (Code 128 only) |
getDataIdentifier() setDataIdentifier(String) |
Data entered in this field will be encoded in the barcode but will not print in the human readable text field for the barcode. Data Identifiers are used to help the scanner identify the field. For Example For an AIAG label, a barcode with a data identifier of P contains a part number, a data identifier of Q signifies a quantity field and a data identifier of S signifies a serial number field. Note: This property is not available for GS1-128 Composite barcodes. |
|
getHumanReadable() setHumanReadable(String) |
Whether a text representation of the barcode is printed. The human readable text can be positioned anywhere on the label (free floating). |
none freeFloating |
getXdim() setXdim(float) |
The X-dimension or width of the narrowest bar in the barcode. The range of values available depends on the Document DPI of the label template. For example, a label template with a Document DPI of 203 has Line X-Dim values in increments of 4.9 mil (1000 mil / 203 dpi). |
Thousandths of an inch (mil) |
getStartCode() setStartCode(String) |
Specify the initial subset (code set) for the barcode data. Note: Regardless of the Start Code specified, Loftware Enterprise SP will switch to a subset that supports the data if it encounters data not supported by the current subset. Note: This property is not available for GS1-128 barcodes and GS1-128 Composite barcodes. |
|