Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

 

 

 

post-106152-0-32098400-1354268549_thumb.

post-106152-0-67330000-1354268725_thumb.

Posted

Or if the script parameter is the wrong format - date or time would mess things up.

Posted

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?

Posted

You have 12 advanced, which includes the script debugger and data viewer. Use those.

Posted

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)

post-106152-0-47788800-1354535639_thumb.

Posted

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

post-106152-0-34739000-1354535732_thumb.

post-106152-0-80489200-1354535738_thumb.

Posted

Can you show us the script parameter being used as the find criterion?

Posted

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.

Posted

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?

post-106152-0-58431600-1354605627_thumb.

post-106152-0-36829500-1354605629_thumb.

post-106152-0-06474500-1354605635_thumb.

Posted

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. :-)

Posted

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.

Posted

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.

Posted

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.

post-106152-0-82385100-1355153617_thumb.

post-106152-0-94553300-1355153621_thumb.

Posted

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]

Posted

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 :)

Posted

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!!

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