2 Replies Latest reply on Jan 2, 2013 2:40 PM by projay

    Simple scan barcode and find Issue



      Simple scan barcode and find Issue


           I have a scanner that scans a workorder Id# performs find and goes to the work order. See attach script.

           Set up as a script trigger on object modify.

           The scanner scans correct id in to id field...so no issues there.

           It is set to set a variable of the id# in a gSearchOrderID then performs a find.

           Works great ...for Script Trigger>Object save

           On Object Modify for some reason it turns the Set variable to 0

           Do I need to make any adjustments on the attached script?

           Thanks for all help...-J




        • 1. Re: Simple scan barcode and find Issue

               Scanners typically operate in "Keyboard emulation mode" which means your computer thinks a very fast typist entered the scanned data one keystroke at a time. OnObjectModify will thus be tripped once for each and every character input from the barcode scanner--just as though you had typed the infor from the barcode instead of scanning it.

               If you want the script to be performed automatically each time that the barcode is scanned, configure your scanner to append a return, enter or tab character to the end of the scanned data and set the field receiveing the scanned data's behavior to exit the field when that particular key is pressed. Then you can use OnObjectSave or OnObjectExit to automatically run the script immediately after scanning a bar code.

          • 2. Re: Simple scan barcode and find Issue

                 Hot diggity dog, Phil...I'm big time now!

                 Thanks...again & again...etc...