← Nortiqo Labels

Help · version 1.1

Label launch contexts GESXNQLC

Contents

A context names the function a print starts from and the values read from its screen when the user clicks Print labels. Its code is what the menu’s line passes.

Prerequisites. The function exists, and a line of the window’s menu names this context (see the install guide).

Field What to enter
Context code Up to 20 characters: A–Z, 0–9 and _, starting with a letter. The code the menu’s line passes.
Description A description of the context.
Active An inactive context refuses every print.
Standard Shown: ticked on a context the release ships, which is copied, not changed (A standard record, above).

Nortiqo names a context by its document’s object, such as PTH for a receipt and SDH for a delivery, and a second context of one document by its own table, such as PTD for a receipt line.

Tab Parameters

At the top:

Field What to enter
Allowed function The function the menu’s line is in, such as GESPTH. A print started from another function is refused.
Site parameter Optional: the parameter that holds the document’s site, such as PRHFCY, which a routing rule’s Site is compared with (Routing rules).

The site parameter is one of the context’s parameters.

Under it, the parameters, up to 50 lines, evaluated in line order when the user clicks:

Field What to enter
Parameter A name: an uppercase letter, then letters, digits or _. Unique within the context. A data source’s filter names it.
Expression A 4GL expression evaluated in the calling function, such as [M:PTH0]PTHNUM for the receipt number on the receipt’s header screen.
Required Ticked: the print stops when the value is empty or spaces only.

The values. A screen or table field that is a date gives YYYYMMDD, and an empty date nothing; a number is written with a point and no trailing zeros; text is as it is. A computed date gives DD/MM/YYYY. A value may hold up to 250 characters. The launcher shows the values in Parameters.

When the context is saved, X3 checks the codes and names, each expression’s syntax, and that the site parameter is one of the parameters. Its fields exist only in the calling function, so a wrong field shows at the first click. A standard context is refused. Deleting a context deletes its parameters; a context that a label prints from, that a data source filters for or that a routing rule names cannot be deleted, nor can a standard one.

The shipped PTH and PTD are allowed from GESPTH. PTH, which Print labels in the receipt’s menu Nortiqo Labels passes, reads PTHNUM = [M:PTH0]PTHNUM and PRHFCY = [M:PTH0]PRHFCY, the receipt and its site. PTD, which Print labels for this line in the same menu passes, reads the same two and PTDLIN = [M:PTH1]PTDLIN(nolign-1), the line. All are required, and both contexts name PRHFCY their site parameter. Each of the other seven is allowed from its document’s function, whose Print labels passes it, and reads the document’s number and site from its screen, such as SDHNUM = [M:SDH0]SDHNUM and STOFCY = [M:SDH0]STOFCY for a delivery: both required, the site its site parameter.

Tab Labels

The labels that print from the context, read only, by priority, then code, at most 50: each label with its description, its priority, copies, default destination and automatic printing, and whether the label is Active. They are set on each label’s tab Print from.

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

Email us

info@nortiqo.com