Jump to content
Server Maintenance This Week. ×

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

Recommended Posts

  • 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

Link to comment
Share on other sites

  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
Link to comment
Share on other sites

This topic is 2909 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.