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 Scan Script Trigger

Featured Replies

Hi All,

 

Got a weird problem for you today. I've got a global field on my layout, gScanSampleID, I use a barcode scanner to scan a value into it. The barcode scanner sends an 'Enter' keypress at the end of the scan, so I use the onObjectSave script trigger to run the script that does what I need to do with the scanned data. The only problem is, at the end of the script, I use a "Go to Field" to return to the gScanSampleID field, to make it ready for the user to scan again, but this isn't working!

 

Nothing is selected, and I have to manually click into the field to scan again. Help? Screenshot of my script attached.

post-93489-0-81001700-1359665911_thumb.p

 

 

select / perform probably should not be checked depending on how you set it up, for mine I gave it a name and and use go to object, and it works perfect for me. see screenshot below.

 

post-102649-0-70657600-1359744729_thumb.

  • Author

Nah, that wasn't it, I tried it both ways and it didn't work. The answer was that after the trigger is executed. filemaker does something else, it commits or leaves the field or something automatically, so the solution was just to put Exit Script[False] as my last line and prevent FM from doing that. Now it's working like a charm.

  • 2 months later...
  • Newbies

How could it work automatically?I did not find any wrong with the barcode scanner script you have attached, so let me know if you find the problem.

 

 

 

 

 

 

 

 

 

______________________________________

Tags:barcode scanner script

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.