Home Forums WMS Express Barcode Rules and Regular Expressions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Steve SimonSteve Simon
    Post count: 6

    Please someone explain how to test Barcode Rules for WMS Express.

    I am trying to extract this ISBN barcode

    9780007514335

    But the scanner picks up  this barcode as Code 128. It has an unwanted prefix of “011” and an unwanted suffix of “50001”. Here is what the scanner shows.
    01197800075143355550001[LF]

    After scratching my head, trying to learn Regex, I came up with the following formula. It seems to work, logically. How do I use it to test the barcode rules for Item number. If I put in the straight Item number, without the prefix or suffix, Barcode Rules returns the actual inventory item, just fine. It uses the default expression of $1. Here is my formula: /[^011]\d…………./

    Marc said to study Regular Expressions in order to parse the scans. How can I apply that to the Barcode Rules page in WMS Express?

    Sincerely,
    Steve Simon
    PDG Consultants

    Insight WorksErik Garstad
    Post count: 1

    Hi Steve,

    Once you’ve created your barcode rule, you can test it on the Insight Works Barcode Rules page in Business Central in two different ways:

    1. Enter the barcode data into the Barcode Data field on the page, then select Test > Test All Rules. This will run through all of the barcode rules, and if a matching rule is found, it will display the data that has been parsed from the barcode based on the rule.
    2. On the barcode rule line itself, there is a field called Sample Text. You can enter your barcode data into this field, and to the right of the field are a variety of Result fields that will populate with the parsed data.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.