← Nortiqo Labels

Help · version 1.1

Label data sources GESXNQLS

Contents

A data source is the table or view whose rows a label prints, one label per row, and its filters: for each context it serves, the rows that the context’s values select. It is set up once for every context and every label that read it.

Prerequisites. The table or view exists in the X3 dictionary. A view must be a view of the dictionary (function GESAVW), not only one in the database. The contexts its filters name.

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

Tab Source

Field What to enter
Type View or Table; a new data source starts as View. Only the field that matches can be entered; the other is greyed, and emptied when the type changes.
Table The table, when the type is Table.
View The view, when the type is View.

The one that applies is required. A print reads at most 200 rows, filtered by the source’s filters for the print’s context; when there are more, the launcher says so and shows the first 200.

Block Filters, up to 200 lines, a line a context’s field. Every line of the print’s context must hold for a row to be printed; each compares for equality. A label prints from a context only when its data source has filters for it, so that no print reads a source unfiltered.

Field What to enter
Context The context the line filters for, with its description.
Filter field A field of the data source.
Mapping type Context parameter or Constant.
Mapping value A parameter of the line’s context, or the constant.

The value is compared as the field’s type says: a date as YYYYMMDD or DD/MM/YYYY, a number as written with a point.

When the data source is saved, X3 checks that each filter field is a field of the source, that each mapped parameter is a parameter of the line’s context, and that a context filters a field once; a source that cannot be read refuses the save. A standard data source is refused. Deleting a data source deletes its filters. A data source that a label names cannot be deleted, nor can a standard one.

The shipped STOCK_MOVED_IN reads the view XNQVSTJ, Stock moved in by a document, one row per stock journal line that moved stock in: the document’s site, type, number and line, product, description, lot, sublot, location, status, quantity in stock unit, stock unit, serial number and the product’s EAN code (EANCOD). So a receipt line received into two lots gives two labels. Its filters for each context select the document’s rows by its number, its site and its document type, a constant: 6 for a receipt, PTH, and by the line too for PTD; 15 for production tracking, the lots it produced; 28 for a quality control, the stock in its new status; 29 for a stock change, the stock in its new place or status; and 35 for a lot renumbering and a lot characteristics change, the lots as they are after it.

The shipped DELIVERY_LINES reads the view XNQVSDD, a row for each line of a delivery, with the customer, the product, the quantity delivered and the product’s EAN code. The shipped WORK_ORDER_PRODUCTS reads XNQVMFI, a row for each product line of a work order, with its planned lot and quantity. Each selects its document’s rows by its number and its site.

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

Email us

info@nortiqo.com