JMart Posted October 16, 2019 Posted October 16, 2019 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
bcooney Posted October 16, 2019 Posted October 16, 2019 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?
JMart Posted November 26, 2019 Author Posted November 26, 2019 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
bcooney Posted November 26, 2019 Posted November 26, 2019 can you post your actually script? What field are you using to capture the scan input? What script trigger are you using?
JMart Posted November 26, 2019 Author Posted November 26, 2019 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
bcooney Posted November 26, 2019 Posted November 26, 2019 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?
Newbies Alvin Ooi Posted January 17, 2020 Newbies Posted January 17, 2020 Hi bcooney do you have any sample i can use to try and create my own?
Recommended Posts
This topic is 1772 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now