This is an example of the item label print process. It starts on a receive order where the user has selected an order line to print a label for.
High-level process
- The "Print Label" action is triggered from the menu
The context (Order line) is transferred as "Reference ID"
"Reference ID" is used to determine:- What data is available from the "Reference ID"
- Which additional steps that needs to be collected to complete the print
- The user is shown with a list of available label templates (setup data in Business Central)
Before this list is shown, the integration event OnLookupOnPrintLabel_OnAddStepsForTemplate is raised
This allows you to capture additional information to put on the label - The user selects a label and fills out the required steps
For this particular label (and context) the following steps are collected:
Unit of Measure, Quantity per Label, Printer selection and the Number of labels. - The data is sent to Business Central where the Dataset for the label is populated
Before the Dataset is sent to the Cloud Print Service, the event OnPrintLabel_OnAfterPopulateDataset is raised
In this event the label data can be changed and gives full control over the data on the label - The dataset is sent to the Cloud Print Service
Cloud Print Service responds with ZPL (Zebra Print Language) instructions corresponding with the selected label and data
Mobile WMS Android app will issue the ZPL directly to the printer
...