Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Barcode Scanning Into Variable

Featured Replies

Hey Guys,

 

Struggling a little bit with FM Go 13 - integrated barcode scanner, my understanding is that you use the "insert from device" function to grab the barcode and insert it into a field.

 

How would I go about, scanning the barcode and saving it as a variable in my script, so that I can then run a find to see if the barcode already exists in the database ? I only seem to be able to insert it into a field.

 

I've attached an image of the script that doesn't work which should give you an idea of what I'm trying to achieve.

 

Thanks

 

James 

post-103895-0-87663500-1390574095_thumb.

You're doing it right: scan into a field, then set a variable with the content of the field.  You can only scan into a field.

 

The rest of your script is not correct at first glance.  The Perform Find has nothing specified.

The script starts in find mode.

Which is ok.

But it needs to have step at the start or at least before perform find:

Set Error capture [on]

Also note that you have to be on a layout where the barcode field is on the layout.

What triggers the script in the first place?

Example attached.

Shows two different methods; one using a global field, one using a standard field.

BarcodeTest.fmp12.zip

  • 4 weeks later...
  • Newbies

Were you able to code to work? If so would you mind sharing? I'm having he same problem.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.