Can I trim or strip some of the scanned data?

Version 1

    If you consistently want to strip off some data from every scan, you can configure settings in CETerm. The data strip settings apply to the specific barcode symbology being scanned. These can be set under Session -> Configure -> Symbology -> <Your symbology selection> -> Advanced -> Strip Data where Your symbology selection is the barcode symbology for which you are configuring this setting. You can select the barcode symbology from the dropdown list on the symbology tab. The following setting control "how much" scanned data is stripped:

     

    • Start is the number of characters to be stripped from the begining of the scanned barcode
    • End is the number of characters to be stripped from the end of the scanned barcode

     

    If your data strip configuration settings are not giving you the expected results, it may be because of the following: 

     

    • The barcode symbology being scanned is not the symbology for which you have set the data strip settings. Symbologies can be may be more specialized. You can add a preamble of @(%H)@ to see the symbology ID for the barcode being scanned as reported by the scan engine. The symbology ID will appear in parenthesis before the scanned data. You can use a 5250 demo session to scan the barcode into any big input field to see the value. Symbology ID values can be found in the CETerm Scripting Guide.
    • If you have an OnBarcodeRead() script handler, then the "Strip Data" is ignored because you can do this within the script.

     

    To get a fixed length of characters in your scanned data or any conditional manipulation or stripping of data in any other way, you can use a script with an OnBarcodeRead handler. Please review the Scripting Guide for details. The Scripting category of this Wiki also has samples for such a script.

    To always add / pad fixed characters to the scanned data, enter these in the preamble or postamble.