May 8, 20169 yr Newbies 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
May 8, 20169 yr Hi, Budi Please update your profile to reflect what version of FileMaker, OS and Platform you are using.
May 9, 20169 yr 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.
Create an account or sign in to comment