Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

The Mobile app can

be configured to convert custom barcodes formats to GS1.

Global converters defindes in start.cfg will be active in the entire app, all the time.

So make sure to use it for identifiable barcodes i.e. with fixed lengths, to ensure the converter will only be triggered when intended.

Local converters can be made in application.cfg

Example: A custom barcode broken

convert custom barcodes into the recommended Encoded Barcode (GS1)

Barcode converters are configured using Mobile Configuration File

Page-specific converter

When you want custom barcodes only to handled on a specific page.

  • Configured using "Application.cfg"

Global converter

When you want custom barcodes to be handled in the entire app.

  • Configured using "start.cfg"


Example, page-specific: Code39 converted to GS1 Item on Receive Lines

Since AI91 is regarded as "Item No." but without the length constraint of AI01, this can be used for many 1D (linear) barcodes like Code39 or Code128.

In this example the data is 14 char, but can be arbritary length since AI91 allows for this.


Image Added

Code Block
languagexml
titleChange in Application.cfg
<page id="ReceiveLines" type="OrderLines" icon="mainmenureceive">
  <title defaultValue="@{PageReceiveOrderLinesTitle}"/>
  <orderLinesConfiguration suggestQuantity="true" verifySingleScanRegistrations="false" actionOnEmptyList="ClosePage">
    <service id="Receive"/>
    <list listId="OrderLines"/>
    <...>
    <scanToSelectBehaviour gs1SearchTerm="Item" behaviour="Auto">
      <converter expression="^(\d{1,14})$" expressionAis="91"/>
    </scanToSelectBehaviour>
  </orderLinesConfiguration> 
...
 

Example, Global: Custom barcode converted into four AI's

Different positions of a barcode value, is broken into several "AI". See table below.

Code Block
languagexml
titleChange in Start.cfg
...
<scanner>
  <type>internal</type>
    <converter enabled="true" type="custom2gs1">
      <!-- BluCom -->
      <customConfiguration expression="^64(\w{1,8})(\d{1,4})(\d{1,3})(\w{1,10})$" expressionAis="10,37,92,91"/>
    </converter>
...


Mapping table 

AI

Position

Length

Description


1

2

Organization, fixed value "64"

10

3

8

External Order No.

37

11

4

Quantity

92

15

3

Quantity per Unit of Measure

91

18

10

SupplyID (Vores interne varenr)


Note: See Register with Encoded Barcode (GS1) for a list of default AI's.


Online

RegEx editorUse

Editor

Use an online editor to test your regular expressions.


Example

https://regex101.com/ to construct a RegEx.

Example:

 

  • Regular expression: ^(\d{1,6})(\d{1,5})$
  • Test string: 11111122222


Legacy: Windows Handheld Embedded

Code Block
languagexml
titleapp.config
...
<type>internal</type>          
  <converter enabled="false" type="pm2ean128" />
    <!--First and up to 20 character-->
    <filter enabled="true">
      <regex>^.{0,20}</regex> 
    </filter>
...







See also

Filter by label (Content by label)
showLabelsfalse
max10
spacesTFSK
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "converter" and type = "page" and space = "TFSK"
labelskb-how-to-article

Image RemovedImage Added
Online tool for building and testing Regular Expressionshttps://regex101.com/


See also