Skip to main content

Barcode Printer Command Template Placeholders

These notes currently apply to GODEX printers.

Placeholders are used for barcode printing with command templates and reference substituted values. When a barcode is printed with a command template,template the template is searched for commands that may include the placeholders listed below as parameters. If a parameter is an exact match then it is replaced by the value for the placeholder.  If the placeholder is unused, or is not set up to be swapped for any data, then the line with the command is removed before it is sent to the printer. The available placeholders will dependingdepend on the item or document being printed. 

Printer commands checked for Placeholders

Description Syntax Notes
Printer Text At,x,y,x_mul,y_mul,gap,rotationInverse,data Unformatted text
1D Barcode Bt,x,y,narrow,wide,height,rotation,readable,data Includes Code39 and Code128
QR Code Wx,y,mode,type,ec,mask,mul,len,roatae<CR>data len must be the length of the placeholder. Data starts at new line

Valid Placeholders

Placeholder Alternative Placeholders Description Used In

General
BAR1   Barcode All
BAR2     Not used
DESCR1 DESC1 Short Description All
DESCR2 DESC2 Long Description All
CAT1   Category Not used
LBL1 LabelInventory
REF1   Reference All
PDATE1 Purchase DateAssets
JOB1 JOBNO1 Job Number All
VER1   Version Not used
ORDER1 ORDNO1 Order Number [TBC]
CUST1   Customer Name [TBC]
DOC-DESC1 F-DESCR1 Document Description [TBC]
DOC-REF1 F-REF1 Document Reference [TBC]
DOC-JOBNO1 F-JOB1 Document Job [TBC]
ADDR1   Address Line 1 [TBC]
ADDR2   Address Line 2 [TBC]
ADDR3   Address Line 3 [TBC]
ADDR4   Address Line 4 [TBC]
POST1   Postcode [TBC]

Assets
BAR1
Asset Number (Default)
OR Barcode (See Notes 3)
Assets
BAR2
Barcode (Default)
OR Asset Number (See Notes 3)
All
CODE1 Stock Item CodeAll
DESCR1DESC1Asset NameAll
DESCR2DESC2DescriptionAll
PDATE1 Purchase DateAssets
REF1
ReferenceAll

Inventory
LBL1 LabelInventory
WEIGHT1 WGT1 Weight in units Inventory
SELLEX1 SELLEXCL1 SELL-EXCL1 Selling Price Excluding Inventory
SELLINC1 SELLINCL1 SELL-INCL1 Selling Price Including  Inventory
ACCESSORIES_GRID11 ACC_GRID1 ACC_GRID(CODE,DESCR,QTY) Accessories Grid Type 1
Columns: Code, Description, Qty
Inventory

ACCESSORIES_GRID21

ACC_GRID2ACC-GRID2 
ACC_GRID(DESCR,QTY)
Accessories Grid Type 2
Columns: Description, Qty
Inventory
ACCESSORIES_GRID31 ACC_GRID3 ACC_GRID(QTY,DESCR) Accessories Grid Type 3
Columns: Qty, Description
Inventory
ACC_CODE_0N2
Accessories Grid Code Row N Inventory
ACC_DESCR_0N2
Accessories Grid Description Row N Inventory
ACC_QTY_0N2   Accessories Grid Quantity Description Row N Inventory
ACC_REF_0N2
Accessories Grid Line Reference Row N Inventory
%PROP1%%P1% %PROP1C% %P1C%Additional Property 1 CodeInventory
%PROP2%%P2% %PROP2C%%P2C%Additional Property 2 CodeInventory
%PROP3%%P3% %PROP3C% %P3C%Additional Property 3 CodeInventory
%PROP1D%%P1D%Additional Property 1 DescriptionInventory
%PROP2D%%P2D% Additional Property 2 DescriptionInventory
%PROP3D%%P3D% Additional Property 3 DescriptionInventory
%PROP4%%P4%Additional Property 4Inventory
%PROP5%%P5%Additional Property 5Inventory
%PROP6%%P6%Additional Property 6Inventory
%PROP7%%P7%Additional Property 7Inventory
%PROP8%%P8%Additional Property 8Inventory
%PROP9%%P9%Additional Property 9Inventory
%PROP10%%P10%Additional Property 10Inventory
%PRED% PredictedInventory
%FACTS%
FactsInventory

 

Lab Samples

%SAMPLENO%%FIELD-A% %A% Sample NumberLab Samples
%SUBMITDATE%%FIELD-B% %B%Submitted Date, YYYY-MM-DD formatLab Samples
%USER%%FIELD-C% %C%User Submitted, First and Last nameLab Samples
%DEBTOR%%FIELD-D% %D%Debtor, NameLab Samples
%ORDERNO%%FIELD-E% %E%Order NumberLab Samples
%APPNO%%FIELD-F% %F%Application NumberLab Samples
%REQDATE%%FIELD-G% %G%Date Required, YYYY-MM-DDLab Samples 
%ITEM%%FIELD-H% %H%Item CodeLab Samples 
%ITEMDESCR%%FIELD-I% %I%Item DescriptionLab Samples
%QTY%%FIELD-J% %J%QuantityLab Samples
%QTYWUNIT%%FIELD-J2% %J2% %QTY-WITH-UNIT%Quantity with unit appendedLab Samples
%YEAR%%FIELD-K% %K%YearLab Samples
%TREATED%%FIELD-L% %L%Treated, Shows as "Treated" if checkbox is ticked, otherwise blankLab Samples

 

PT Job Item [WIP]

%PBAR%%PBARCODE% %PB% %PB1%Primary Barcode, the value used depends on which Barcode Print button in the form is clicked.

The Job Item Number is used when the button next to it is clicked, and the Barcode is used when the button next to it is clicked.

%JOBITEM%%JOBITEM-NAME% %JI-NAME% %JI% %JI1%Job Item NamePT Job Item
%JOBITEMNUM%%JOBITEM-NUM% %JOBITEMNO% %JI-NUM% %JI2% Job Item NumberPT Job Item
%LOC%%LOCATION% %L% %L1%Location DescriptionPT Job Item
%LOCCODE%%LOCATION-CODE% %L2%Location CodePT Job Item
%QC%%QC-NAME% %QC1%Quality Control DescriptionPT Job Item
%QCCODE%%QC-CODE% %QC2%Quality Control CodePT Job Item
%INSPBY%%INSPECTED-BY% %I% %I1%Inspected By Full NamePT Job Item
%INSPBYFN%%INSPECTED-BY-FNAME% %I2%Inspected By First NamePT Job Item
%INSPBYLN%%INSPECTED-BY-LNAME% %I3%Inspected By Last NamePT Job Item
%CUST%%CUSTOMER% %C% %C1%Customer NamePT Job Item
%CUSTCODE%%CUSTOMER-CODE% %C2%Customer CodePT Job Item
%DOCNUM%%DOCUMENT-NUM% %DOCNO% %DN% %DN1%Document NumberPT Job Item
%LPLAN%%LPLANNING%%LP% %LP1%Location Planning DescriptionPT Job Item
%LPLANCODE%%LPLANNING-CODE%%LP2% Location Planning CodePT Job Item
%GROUP%%G% %G1%Group DescriptionPT Job Item
%GROUPCODE%%GCODE% %G2%Group CodePT Job Item
%REF%%REFERENCE% %R% %R1%ReferencePT Job Item
%DESCR%%DESCRIPTION% %D% %D1%DescriptionPT Job Item
%BAR%%BARCODE% %B% %B1%BarcodePT Job Item
%SERIAL%%SERIAL-NUM% %SERIALNO% %SN% %SN1%Serial NumberPT Job Item
Notes
  1. Sizing and layout can be determined by a sequence of table graphic commands directly following the command containing the placeholder. The size of the font in the table will be the size of the placeholder font. See the section Accessory Grid Printing for more details about Accessory Grid Printing.
  2. Placeholders for column values of the Accessories grid can be set in the template instead of setting ACCESORIES_GRID. The N is replaced with a number referencing the row in the grid, for instance ACC_CODE_01 references the Code value in first row.
  3. For barcode printing in the Assets Module the by default the placeholder BAR1 references the Asset Number of the item and the placeholder BAR2 references its Barcode. However, if the Print Barcode button in the General Tab of the Asset Details form is clicked, the values are interchanged, with BAR2 referencing the Asset Number.

    Printing from Main Tab in Asset Details Form (Default Behaviour)

    image.png

    Printing from General Tab in in Asset Details Form (Special Case)

    image.png


Lab Samples Markers

 image.png

Accessory Grid Printing

To include a table with accessory data for an inventory item a placeholder that begins ACCESORIES_GRID is used or one of the alternate placeholders for it. Alternatively individual values can be referenced with the ACC_CODE_0N, ACC_DESCR_0N, ACC_QTY_0N, and ACC_REF_0N placeholders, where N is replaced with the row number of the table.

There is currently one type of accessories table available although more types can be added if required.

The data for the grid is found in the Inventory Setup window for an item, in the Manage Accesories form which is opened through the Functions menu. 

Manage Accessories grid 2023-11-23_14-42-31.pngimage.png

For the label commands of the table data to be generated successfully it is important that the table drawing commands in the template appear immediately after the ACCESSORIES_GRID1 placeholder label command. 

golabel template command area accessories grid 2023-11-23_14-11-41.pngimage.png

The spacing of the table is determined by the layout of the lines of the table in the template. The table can be drawn with the table drawing tool located in the left side bar in GoLabel II. Labels are placed at the top left corner of their corresponding cell. Headers are added automatically and are one font size larger than the font for the table data. There is by default a 20 dot indentation for the table values. Quantity values are right aligned, using white space characters, within the space of the widest quantity value. 

If there is more data than there are rows drawn in the template table then the additional rows are added automatically based on the size of the last row.

golabel template design for accessories grid 2023-11-23_13-30-51.pngimage.png

Without enough horizontal spacing the values in the table may overlap. Currently this issue is ignored but having extra horizontal space will help mitigate it. Limiting the number of characters and using a fixed width font may be one option to fix this in the future. 

GoLabel design Accessories Grid result overlap 2023-11-23_14-51-06.pngimage.png