raitis Posted November 30, 2012 Posted November 30, 2012 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   Â
Rick Whitelaw Posted November 30, 2012 Posted November 30, 2012 The only thing I can think of is that the script, for some reason, is not receiving the script parameter.
IdealData Posted December 1, 2012 Posted December 1, 2012 Or if the script parameter is the wrong format - date or time would mess things up.
raitis Posted December 3, 2012 Author Posted December 3, 2012 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?
IdealData Posted December 3, 2012 Posted December 3, 2012 You have 12 advanced, which includes the script debugger and data viewer. Use those.
raitis Posted December 3, 2012 Author Posted December 3, 2012 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)
raitis Posted December 3, 2012 Author Posted December 3, 2012 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
jbante Posted December 3, 2012 Posted December 3, 2012 Can you show us the script parameter being used as the find criterion?
jbante Posted December 3, 2012 Posted December 3, 2012 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.
raitis Posted December 4, 2012 Author Posted December 4, 2012 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?
raitis Posted December 4, 2012 Author Posted December 4, 2012 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
john renfrew Posted December 4, 2012 Posted December 4, 2012 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
raitis Posted December 4, 2012 Author Posted December 4, 2012 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.
raitis Posted December 4, 2012 Author Posted December 4, 2012 This is double posted.. yeah, sorry. didnt know where to put it..
LaRetta Posted December 4, 2012 Posted December 4, 2012 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. :-)
jbante Posted December 4, 2012 Posted December 4, 2012 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.
raitis Posted December 7, 2012 Author Posted December 7, 2012 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.
raitis Posted December 10, 2012 Author Posted December 10, 2012 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.
jbante Posted December 10, 2012 Posted December 10, 2012 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]
raitis Posted December 11, 2012 Author Posted December 11, 2012 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
jbante Posted December 11, 2012 Posted December 11, 2012 The URI scheme for FileMaker 12 is "fmp", not "fmpscript".
raitis Posted December 11, 2012 Author Posted December 11, 2012 The URI scheme for FileMaker 12 is "fmp", not "fmpscript". yes, i changed it to fmp
raitis Posted December 11, 2012 Author Posted December 11, 2012 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!!
Recommended Posts
This topic is 4434 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 accountSign in
Already have an account? Sign in here.
Sign In Now