Issue with Insert from Device
FileMaker Go 13
Operating system version
Description of the issue
Having a technical issue with Insert from Device.
The objective of this script is to be able to scan a QR Code and then take a photo of an employee.
The script can be run once with success but when the script is run again the QR Code is not scanned.
In order to get it to have success FileMaker Go needs to be quit and restarted and then a single completion of the script can be performed but then fails on the next.
If the photo request steps are disabled there is success each time to scan a QR Code and add if the employee does not exist.
Steps to reproduce the problem
Set Error Capture [ On ]
Insert from Device [ Employee::Barcode_Text_g; Type: Bar Code; Camera: Back; Resolution: Full; Types: Code 39, Code 93, Code 128, EAN-8, EAN-13, EAN/UPC Composite, GS1 2-Digit Add-On, GS1 5-Digit Add-On, GS1 DataBar Expanded, GS1 DataBar (RSS), ITF-14, ISBN-10 (from EAN-13), ISBN-13 (from EAN-13), QR Code, UPC-A, UPC-E ]
Set Variable [ $id; Value:Employee::Barcode_Text_g ]
Perform Find [ Specified Find Requests: Find Records; Criteria: Employee::Barcode_Text: “==$id” ] [ Restore ]
If [ Get ( LastError ) = 0 ] #
Show Custom Dialog [ Title: "Record Exists for " & Employee::Barcode_Text; Default Button: “OK”, Commit: “Yes” ]
Show Custom Dialog [ Title: "Would you like to take a photo of ...."; Message: Employee::Name; Default Button: “Yes”, Commit: “No”; Button 2: “No”, Commit: “No” ]
If [ Get ( LastMessageChoice ) = 1 ]
Insert from Device [ Employee::Photo; Type: Camera; Camera: Back; Resolution: Full ]
[ Skip data entry validation; No dialog; Force Commit ]
Show All Records
Be able to multiple i device inputs in a single script.