selectPrintJob
The selectPrintJob method is a very powerful method that allows control of what to print. The simplest form deselects any existing jobs, or selects a single label, but it can also set up a database driven job. The job can either replace the existing job, or add it to a queue.
Parameter
A Print job object.
The Print job object must also include the following attributes:
| Key | Type | Description |
|---|---|---|
| printer | string | Printer ID. Required if more than one printer is available. |
Return value
null
Examples
Deselect all print jobs (clearing the queue):
selectPrintJob {}
Select a single label "MyLabel":
selectPrintJob {"labelName": "MyLabel"}
Select a single label "MyLabel", limit to a single print, and add to the end of the queue:
selectPrintJob {"labelName": "MyLabel", "copies": 1, "queue": true}
Search the table "MyTable" in the column "Product" for "MyProduct", and select the label from the column "Label":
selectPrintJob {"tableName": "MyTable", "keyColumn": "Product", "key": "MyProduct", "labelColumn": "Label"}