Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3111 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

Hi, Budi

Please update your profile to reflect what version of FileMaker, OS and Platform you are using.

  • Like 1
Posted
  1. 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.
  2. Try "Get ( LastError ) = 401" instead of "IsEmpty ( Product::upc )" to test for when the database wasn't able to find a matching record.
  3. 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.
  • Like 1

This topic is 3111 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.