← Nortiqo Labels

This is the help for version 1.0. Open this page in version 1.1, the newest.

Help · version 1.0

Labels GESXNQL

Contents

A label is how one row prints, in one of four formats: a ZPL template, a BarTender document, or a CSV or JSON data file; its variables; the data source its rows come from; and, on tab Print from, the contexts it prints from, with where each print goes by default.

Prerequisites. The data source, and the contexts and destinations its Print from lines name. A label is saved before its template, so it can be written in steps.

Field What to enter
Label code Up to 20 characters: A–Z, 0–9 and _, starting with a letter.
Description A description of the label.
Active Only an active label is offered in the launcher.
Standard Shown: ticked on a label the release ships, which is copied, not changed (A standard record, above).

Tab Layout

Field What to enter
Data source The data source whose rows the label prints, with its description. Required.
Format ZPL, BarTender, CSV data file or JSON data file. Changing it greys the field the other formats use; nothing is emptied.
Template ZPL only: the ZPL of the label, up to 32 766 characters, with a tag {NAME} wherever a value goes.
BarTender document BarTender only: the document’s path in BarTender’s Librarian, such as librarian://main/Labels/Pallet.btw. Required (message 89).

The data source and the template. When the data source changes, X3 adds the source’s fields that the template’s tags name to Variables. A template may be left empty while the label is set up, but a ZPL label without a template cannot be previewed or printed (message 33). When the template changes, X3 adds its tags that name a field of the data source, and offers the others that have no variable (Designing a label, below).

A BarTender label prints a document designed in BarTender. Each variable fills the document’s named data source of the same name, so name the data sources in BarTender as the variables are named here: uppercase letters, digits and _. Each field of one value of the label’s data source that no variable names fills the data source of its name too, after the variables, up to 200 in all. The document’s barcodes are BarTender’s, so X3 checks the variables’ values (required, format) but not the barcodes. Print it to a BarTender destination.

A data file is a row’s values written as a file for BarTender’s own file integration, a folder trigger or BarTender Cloud’s File Drop, to read: a CSV file, the variables’ names on its first line and the values on the next, every value between double quotes; or a JSON file, an array of one object per copy, each variable a key, and after them each field of one value of the data source that no variable names, up to 200 in all. Print it to a File destination; the file ends in .csv or .json. A data file needs neither template nor document.

Tags. A tag is { + a name + }: an uppercase letter, then up to 29 uppercase letters, digits or underscores. Each tag must be a variable of the label or a field of its data source: a tag without a variable prints the source’s field of its name, not required. A { that starts no tag is printed as it is. A value is put in place as it is and never read for tags. A variable that no tag uses is ignored.

What X3 does to the template when it prints, so that the label prints as written:

  • When the template sets no character set, ^CI28 (UTF-8) is put after each ^XA, so that å, ä and ö print.
  • In the data of a field (^FD or ^FV up to ^FS), a value’s ^ and ~ are escaped through ^FH: where the field has no ^FH, one is put in front of its ^FD or ^FV.
  • A value outside field data goes in as it is. A ^ or ~ in such a value, or a character the printer cannot take, stops that row instead (message 44): a control character, or, when the template selects another character set than UTF-8, any character above 126.

What X3 checks in a ZPL label, at preview and at print. The first check that fails is the row’s message, and that row gets no label:

  1. Every tag is a variable of the label or a field of its data source (message 40).
  2. The template is valid ZPL as far as this goes: it has a ^XA; every ^XA has its ^XZ; every ^FD or ^FV is closed by ^FS; it does not change the command prefix with ^CC, ~CC, ^CT or ~CT (message 41, with the first fault and its line).
  3. Every value can be printed (message 44).
  4. A barcode field’s data is valid for its barcode. EAN-13 (^BE) takes 12 or 13 digits, EAN-8 (^B8) 7 or 8 and UPC-A (^BU) 11 or 12; with the longer length the last digit must be the check digit (message 42). Code 128 (^BC) takes the characters 32 to 126. Anything else gives message 43. Other barcodes are not checked.
  5. The finished label is at most 32 766 characters (message 34).

Checks 1 and 2 depend on the template alone, so they stop every row alike: preview a label after changing its template.

Tab Variables

One line per tag, up to 200. Variables are resolved in line order.

Field What to enter
Variable The tag’s name, without braces: an uppercase letter, then letters, digits or _. Unique within the label.
Source type Field, Constant, Expression or SSCC (see SSCC numbering).
Source value A field of the data source for Field, the text for Constant, a 4GL expression for Expression, nothing for SSCC (Source values, below).
Format Optional: a format in the notation of X3’s format$ function, applied to the value; D:4Y2M2D writes a date as 20261001. None for an SSCC.
Required Ticked: a row whose value is empty, or spaces only, is not printed and shows message 14.

Source values. For Field, the name of a field of the data source, such as LOT; a field with several values takes an index counted from 0, NAME(0) for the first. For Constant, the text itself. For Expression, a 4GL expression evaluated for each row, in which the row is the class [F:XNQX], such as [F:XNQX]LOT+"-"+[F:XNQX]SLO. For SSCC, nothing: the number is drawn at print.

Formats. With no format, a date is written YYYYMMDD and a number with a point and no trailing zeros. A value the format does not take, such as letters under K:5#, comes out as spaces or empty, with no message: tick Required on a variable that must print.

A value may hold up to 250 characters (message 51 above that).

Tab Print from

The contexts the label prints from, up to 50 lines, a context once: X3 refuses one entered twice. One context can offer several labels, and one label can print from several contexts.

Field What to enter
Context A context the label prints from, with its description. The data source needs filters for it (message 128).
Priority The order of the context’s labels in the launcher, the lowest first, then by code; the first is chosen when the launcher opens. A new line takes 10.
Copies 1 to 999: the copies per row the launcher proposes (message 12). A new line takes 1.
Default destination Optional: the destination the launcher proposes when no routing rule gives one, if it is active. It must take the label’s format (message 88).
Automatic printing Ticked: the label also prints by itself when a document of the context is created, at a site whose automatic printing is on.

Automatic printing. A line not ticked prints from Label printing and the web service alone; a line ticked also prints from the context by itself (Automatic printing, below).

When the label is saved. The codes and names are checked (message 18), and an expression’s syntax (message 17). Every variable but an SSCC needs a source value (message 117); an SSCC takes no source value or format (118), and a label has one at most (119). Each Print from line needs filters for its context in the data source (128), a default destination that takes the label’s format (88) and copies of 1 to 999 (12). Each Field variable must be a field of the data source (15), and each tag of a ZPL template a variable or a field of the source (130); a source that cannot be read refuses the save (7). The print checks the filters and the fields again, since a data source can change after the label is saved. The fields an expression names are known only in the rows, so a wrong field or class shows at the first preview (message 16). A standard label is refused (127).

Deleting a label deletes its variables and its Print from lines. A label that a routing rule names cannot be deleted, nor can a standard one (127), whose Delete is not offered.

Button Open designer

Open designer opens the folder’s label designer in a new tab of the browser, to lay out a ZPL label there. Only a ZPL label is laid out there: a BarTender label is designed in BarTender, and a data file has no layout (message 120).

The designer’s address is the parameter Label designer address (XNQLDSGURL, chapter XNQ, group XNQL) in General parameters (ADPVAL), at folder level. Installed, it is Labelary’s online viewer, https://labelary.com/viewer.html. Set another web designer’s address there, or empty it where the designer runs on the user’s computer, as ZebraDesigner does: the button then shows message 121. An address starts with https:// or http:// and holds at most 240 characters after it (message 122). A user already logged in keeps the address X3 read: a change applies from the next login.

Labelary draws the label on its own servers, so the ZPL typed or pasted there leaves X3 and your network. A template holds a label’s layout and its tags, never a row’s values. Where even that should stay inside, set the address of a designer of your own, or empty it.

Designing a label

  1. Click Open designer and lay the label out in the new tab. Where a value goes, type its tag in the field’s data, such as ^FD{LOT}^FS: a tag’s name is in capitals (Tags, above).
  2. Copy the finished ZPL, paste it into Template, and leave the field.
  3. X3 adds a line to Variables, without a question, for each tag without a variable that names a field of the data source: source type Field, the field as its source value, no format, Required, after the last line.
  4. When tags remain that are neither a variable nor a field of the source, X3 lists the template’s tags and those that remain, and asks whether to add them (message 124, or 125 when the lists are too long to show). Yes adds a line for each, after the last: source type Field, the tag’s name as its source value, Required. No adds nothing. Variables holds 200 lines: tags that do not fit are not added (message 126).
  5. Change each line the question added, its source type or its value: no field of the source has its name, so the save refuses it as it is (message 15). Then save the label and preview it from a document.

When the template changes again, X3 adds and asks again. When the data source changes, X3 adds the new source’s fields that the tags name, and asks nothing. It shows nothing when every tag has its variable, and message 123 when the template holds no tag. In an import it adds and asks nothing.

Labelary draws a label as a new printer with factory settings would. Print a label once on the printer it is for before using it: fonts and settings can differ. A designer that writes the ZPL from a drawing may write a typed tag differently: the tags X3 lists after the paste show what it kept.

Stuck? Ask your Sage partner, or write to info@nortiqo.com.

Email us

info@nortiqo.com