November 30, 201213 yr dear forum,  i used this script in fm11 (image attached).  i used my database on my iphone with filemaker go. i had a button, when pushing it, it rans this script. opening a barcode scanner software and then returning the scanned result into the filemaker database in the search field. this way i was able to find a product in my database by scanning it with the iphone camera.  now i am using fm12. i pushed the SCAN button, but i get this error (error.jpg)  anybody has a idea why this error appears now?  sincerely, raitis   Â
November 30, 201213 yr The only thing I can think of is that the script, for some reason, is not receiving the script parameter.
December 1, 201213 yr Or if the script parameter is the wrong format - date or time would mess things up.
December 3, 201213 yr Author The only thing I can think of is that the script, for some reason, is not receiving the script parameter. any idea how to check this? Or if the script parameter is the wrong format - date or time would mess things up. where could i look for or how can i prove this?
December 3, 201213 yr You have 12 advanced, which includes the script debugger and data viewer. Use those.
December 3, 201213 yr Author any idea how to check this? Â where could i look for or how can i prove this? Â thanks, but i have no idea what to enter here in the find request. (attachment)
December 3, 201213 yr Author dear forum, Â i used this script in fm11 (image attached). Â i used my database on my iphone with filemaker go. i had a button, when pushing it, it rans this script. opening a barcode scanner software and then returning the scanned result into the filemaker database in the search field. this way i was able to find a product in my database by scanning it with the iphone camera. Â now i am using fm12. i pushed the SCAN button, but i get this error (error.jpg) Â anybody has a idea why this error appears now? Â sincerely, raitis
December 3, 201213 yr I recommend sticking with the Set Field [] method of setting find requests. It makes the functionality readable without having to open yet another dialog. Having Advanced may not help debug this issue, since we're diagnosing a problem showing up in Go. You can see the script parameter by adding a Show Custom Dialog [Get ( ScriptParameter )] step to your script.
December 4, 201213 yr Author ok, thanks. Â please find attached the script itself. the custom dialog. and the script for the app. the scan button should open csn barcode app from the iphone, scan the barcode and then return the value into a search field and then it should display the found item. Â where is the mistake?
December 4, 201213 yr Author Can you show us the script parameter being used as the find criterion? where can i find it? i used this tutorial. and it worked for FM11. http://www.skeletonkey.com/blog/filemaker_go_barcode_scanning_with_cns_barcode
December 4, 201213 yr Check the CNS example for 12 You are using fmp7script as part of the callback creating the parameter http://www.cnsplug-ins.com/iOS/CNS_Barcode/FAQs
December 4, 201213 yr Author Check the CNS example for 12 You are using fmp7script as part of the callback creating the parameter http://www.cnsplug-ins.com/iOS/CNS_Barcode/FAQs thanks! i changed it from fmp7 to fmp as told in the link. but the script still shows the same error.
December 4, 201213 yr For future, FMForums prefers that folks only post same question once. Those that respond read all forums anyway and if you accidentally post in wrong section it will be moved for you. :-)
December 4, 201213 yr Can you show us what the script parameter looks like (as revealed by the custom dialog) when you try to use the feature you're working on in FileMaker Go where the issue is relevant? When troubleshooting interactions between FileMaker Go and other iOS apps via URI schemes, it doesn't do any good to test with the desktop version of FileMaker.
December 7, 201213 yr Author For future, FMForums prefers that folks only post same question once. Those that respond read all forums anyway and if you accidentally post in wrong section it will be moved for you. :-) ok. thank you.
December 10, 201213 yr Author Can you show us what the script parameter looks like (as revealed by the custom dialog) when you try to use the feature you're working on in FileMaker Go where the issue is relevant? When troubleshooting interactions between FileMaker Go and other iOS apps via URI schemes, it doesn't do any good to test with the desktop version of FileMaker. Â sorry for the delay. my topics was offline. i dont know why. but the forum admin fixed it. Â about the script parameter, please find attached the script and the custom dialog.
December 10, 201213 yr OK, so we're getting an empty script parameter back from your barcode scanning software. Which app are you using? What's the calculation for the URL you're sending to it? Can you send us a screenshot of the exact text you're sending it? Perhaps insert something like this in the FileMaker script that initiates the barcode scan: Set Variable [$scanURL; Value: ... ] Show Custom Dialog [$scanURL] Open URL [$scanURL]
December 11, 201213 yr Author OK, so we're getting an empty script parameter back from your barcode scanning software. Which app are you using? What's the calculation for the URL you're sending to it? Can you send us a screenshot of the exact text you're sending it? Perhaps insert something like this in the FileMaker script that initiates the barcode scan: Set Variable [$scanURL; Value: ... ] Show Custom Dialog [$scanURL] Open URL [$scanURL] this is the script called "Open CNSbarcode app": "cnsbarcode://scan?method=camera&launchurl=fmpscript%3A//%24/" & Get ( FileName ) & "%3Fscript%3DScan%26param%3D::barcode::" i will try to make a script which you are talking about and then report back
December 11, 201213 yr Author The URI scheme for FileMaker 12 is "fmp", not "fmpscript". yes, i changed it to fmp
December 11, 201213 yr Author The URI scheme for FileMaker 12 is "fmp", not "fmpscript". problem solved. i had 2 scripts. one was called "scan" and the other "open CSN barcode". the problem was that the script "scan" was assigned to the scan button in my database. i changed it to "CSN barcode" and now everything works! i dont know how i messed this up. silly mistake... i know. thank you very much anyway!!
Create an account or sign in to comment