GS1 DataBar 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: 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) |
getType() setType(String) |
Which variation of the GS1 DataBar symbology is used. Note: This property affects Max Chars. |
Omnidirectional Truncated Stacked Stacked Omnidirectional Limited Expanded Expanded Stacked |
The degree to which the barcode is stacked. Note: The Segments property is available only if the GS1 DataBar Type is Expanded Stacked. |
2-22 | |
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) |