October 16, 20196 yr Hi guys, I am trying to create a very basic script that would allow for continues scanning, but don’t seem to be able to figure out how to get the script to work. i set a script trigger to execute on exit with the following script. new record go to filed [item_code] the idea is so when I scan an item the scanner will add a return at the end exiting the field, and so triggering to run the script over. all I get is an endless loop. thanks
October 16, 20196 yr Typically, the barcode scan is nothing more than a Find by barcode. I typically have a button that opens a card window with a global field and place the user in that field. They are now ready to scan. The scanner is configured to add a return at the end of the scan. That exits my field and an OnObjectSave runs a script that performs a find for the item. What you do next is up to your "Inventory taking" workflow. Set a Date Inventoried to Get ( CurrentDate)? Create a new record in a InventoryLog table?
November 26, 20196 yr Author Thanks, I don't really need any controls, all i need is the ability to scan a barcode and once the field exits a new record is created and wait for the next scan. The issue i am having is once i execute the script either using trigger on exit or enter it goes into an endless loop cretating indefinite records. Thanks
November 26, 20196 yr can you post your actually script? What field are you using to capture the scan input? What script trigger are you using?
November 26, 20196 yr Author Thanks, The only steps I have on my script are; new Record/Request Commit Records/Requests [with dialog:off] Go to Field [inventory Collection::ItemCode] For trigger I have tried; OnObjectSave and OnObjectExit All i get is a loop creating a record. Thanks for you help
November 26, 20196 yr Going back to your first post...your goal is to scan a barcode and create a new record setting the barcode you scanned into the item code field? Do you have a global field for receiving the scanned data?
Create an account or sign in to comment