Jump to content

FMGo 14 Loop To Keep Camera Active?


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

Recommended Posts

I have a class attendance solution that I've been running with the help of FMGo 13 for some time. The solution uses a bluetooth barcode scanner and an iOS device to scan a student id and track attendance etc. The bluetooth connection to the iOS device has proven the weakest link in that it occasionally drops and requires re-pairing the device. While not rocket science to re-pair the scanner it's not ideal for the end user. With the advent of FMGo 14 one can now utilize the onboard iOS camera for scanning, however, I'm having difficulty creating a loop to keep the camera active. I would like the camera to scan and stay active so the user does not have to "activate" the camera with each scan. Anyone out there with any thoughts or experience with creating such a loop function for the FMGo 14/iOS camera feature?

Link to comment
Share on other sites

I've had my issue resolved on another forum and thought I would share in hopes of helping others. The following script bits did the trick.

Go To Layout [whatever layout]

Set Error Capture [ on ]

Loop

  New Record

  Insert From Device [ barcode type ; barcodeScans::barcode field ]

  Exit Loop If [ get(lasterror) = 1 ]

End Loop

Delete Record [ no dialog ]

Link to comment
Share on other sites

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