Do you have a how-to article for this posted anywhere?
Not yet, but I will post later today.
As promised, here is the guide for the FileMaker Go barcode example.
To decode the barcode, I send picture to the server (in my example via net without using FMS) that performs the actual analysis and decoding and then sends back the result. There are two ways to do this; with iOS 6 media uploads without using FMS or with containers and FMS.
You'll need the following:
1) Zbar source code (the binary for OS X is not available)
2) ImageMagick source code (the binary for OS X is not available)
3) Xcode and Command Line Tools for Xcode (needed to compile the Zbar and ImageMagick)
4) Apache and PHP
5) FileMaker file and PHP/HTML/CSS/JS file
I. Download and Install Xcode and Command Line Tools for Xcode
II. Download ImageMagick source code, unpack and compile
III. Download Zbar source code, unpack and compile (without Python, GTK, QT and disable video)
IV. Enable PHP on OS X and change maximum size of post data to 5MB
V. Run Web Sharing in OS X
Next, create PHP file upload script, set opacity for input type: file to zero, disable format detection with meta tag and prevent scrolling with JS (in Mobile Safari), write JS for auto-submit and run shell script to run Zbar to decode and return the result. Then create a FileMaker file with WebViewer object to display previously created file with trigger OnObjectExit to get a string from WebViewer into field and to do the search.
I hope it is not to complicated.
Thanks for sharing Sebastijan !
It's indeed a pretty cool demo.
Do you have an example file and documentation of this new approach?
I am using FileMaker Go, open URL command to call pic2shop to scan a QR code of attendee's name, which will in turn create a new record in the attendance table, and each attendee can have multiple records in the attendance table that stores their attendance for different days.
The problem is I could not figure out how to pass the data from pic2shop back to fmp database, as after pic2shop scanned the QR code, it didn't return back to fmp. In my script, Open URL [No dialog; "pic2shop://scan?callback=" & student::Name]
Hope to get your advice, thank you!