Velocity: Scripting, Prepend Data to a barcode

Version 1

    The purpose of this document is to go share how to create a script to prepend data to a bar code in its simplest form..

     

     

    1. PrePend data

         a. This script will prepend data to a scanned barcode

              i. the Script

    function onScan(event)

    {

       

                   event.data = prepend.concat(event.data);

     

    }

     

    WLEvent.on("Scan", onScan);

              ii Parameters:

                   a. variable name: prepend

                   b. Display name: prependData

                   c. String Checked:

                        i. String Name: prepend, Value: "Your Value"