Newbies Budi Hananto Seto Posted May 8, 2016 Newbies Posted May 8, 2016 i have a script to find and add barcode if not available, but, the problem is, it is not automatically add new barcode, if the find result is not available, any suggestion about this script? i want to to find barcode through iphone camera, if not available, it will automatically add the new barcode. thank you script.tiff
Lee Smith Posted May 8, 2016 Posted May 8, 2016 Hi, Budi Please update your profile to reflect what version of FileMaker, OS and Platform you are using. 1
jbante Posted May 9, 2016 Posted May 9, 2016 Try saving the data from the barcode to a variable before you perform the scan. Then when the script doesn't find the Product record and creates a new one, it can set the value using Set Field instead of re-scanning the barcode with Insert from Device. Try "Get ( LastError ) = 401" instead of "IsEmpty ( Product::upc )" to test for when the database wasn't able to find a matching record. You don't have to Set Error Capture [On] twice the way you did. It's probably even be a good idea to turn it [Off] after the find. 1
Newbies Budi Hananto Seto Posted May 9, 2016 Author Newbies Posted May 9, 2016 great jbante, i will try to modify the script..thank you so much
Recommended Posts
This topic is 3392 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