Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added examples

...

The change is made in the workflows section of Mobile Configuration Files.

Use "inputFormat" followed by a regular expression for what you want to achieve

...

Examples

  • Match only alfa-numeric characters, blocking special characters
    • ^\w+$will match only alfa-numeric values and therefore blocks special characters 
  • Validate date is in format DDMMYY where YY must be 20 or higher

    • (0[1-9]|[1-2][0-9]|3[0-1])(0[1-9]|1[0-2])(2[1-9]|3[0-2])


Use an online editor to test your regular expressions see Barcode converter - Regular Expressions


Code Block
languagexml
titleWorkflow section
<workflow id="receiveWorkflow" itemNumberAI="01,02,91">
  <configuration scanBehaviourWhenRegisteringQuantity="ScanNextItem" fastForwardMode="InputAndScanValues">
    <steps>
      <...>
      <lotNumber id="32" inputFormat= "^\w+$" header="@{RegistrationCollectorLotNumberHeader}" defaultValue="{LotNumber}" helpLabel="@{RegistrationCollectorLotNumberHelpLabel}" eanAi="10"/>
      <...>
   </steps>
  </configuration>
</workflow>

...