Select Line by scan (scanToSelectBehaviour)
Description
Ā
Ā
Filter or Select Order Line based on a scanned value.
Use case
Use scanning to speed up line selection and reduce errors.
Data types andĀ Selection priority
Item No.
ItemBarcode
Barcodes that uniquely identifies the Item
Optionally also identifies the "Variant" and "Unit of Measure"
Lot No.
Serial No
Ā
These line values are part of the Order Lines GetOrderLines Response.
Encoded Barcode (GS1) will usually contain one or more data types: See section below for non-GS1 barcodes
Ā
Behavior
Depending on the barcode and configuration, the app will either:
A: Select the Line automatically (behavior=Auto)
The app was able to work out the correct line from the barcode
B: Ask the user to select from a reduced listĀ (behavior=User)
Multiple lines were found. The user is presented with a list of matching lines, to select from.
Ā
How to set it up
This is set up using Mobile Configuration Files.
Step 1: Enable āScanToSelectBehaviourā
See the example below.
Step 2: Set properties (optional)
gs1SearchTerm
behavior
converter
See the example below and Order Lines Mobile Configuration for more information.
Ā
Example
<page id="ReceiveLines" type="OrderLines" icon="mainmenureceive">
<title defaultValue="@{PageReceiveOrderLinesTitle}"/>
<orderLinesConfiguration suggestQuantity="true" verifySingleScanRegistrations="false" actionOnEmptyList="ClosePage">
<service id="Receive"/>
<list listId="OrderLines"/>
<viewRegistrations title="@{OrderLinesRegistrationMenuItem}" navigateTo="ViewRegistrations" enabled="true"/>
<deleteOrderRegistrations title="@{OrderLinesDeleteAllOrderRegistrationsMenuItem}" enabled="true"/>
<extraInformationConfiguration stepSorting="ById"/>
<onOrderPosted clearOrderLevelRegistrations="true"/>
<scanToSelectBehaviour gs1SearchTerm="All" behaviour="Auto"/> <-----------------------------
</orderLinesConfiguration>
..Ā
Ā
Support for custom barcode formats (Non-GS1)
If your barcode is non-GS1, you can use a converter like to identify the values you need.
Ā
Step 1: Define Regular Expression
We will use a Barcode converter to extract the part of the barcode we want.
Format: "SerialNumber MoreBarcodeValues"
Example: SN100000000000000001 ABC123
Ā
Note the "space" character after the serial number.
The expression must read the first 20 characters before that space character.
Regular Expression
^(\w{1,20})\s" Step 2: Enable "ScanToSelectBehaviourType"
This is changed inĀ Mobile Configuration Files.
See the example below.
See also Order Lines Mobile Configuration for details on the properties used.
Step 3: Define Converter and AI (GS1 Application Identifier)
Insert the regular expression and direct it to AI21 (Serial Number)
Ā
Example
<page..>
Ā <orderLinesConfiguration>
<scanToSelectBehaviour gs1SearchTerm="Item" behaviour="Auto">
Ā Ā Ā <converter expression="^(\w{1,20})\s" expressionAis="21"/>
Ā Ā </scanToSelectBehaviour> Ā
Ā
See also
-
Select, Add or Refresh Order Lines by Scan (LineSelection) ā Select, Add or Refresh Lines by scanning
-
Select Line by scan (scanToSelectBehaviour) ā Filter or Select Order Line based on a scanned value.
Ā
Ā