Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

The only thing I can think of is that the script, for some reason, is not receiving the script parameter.

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

  • 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?

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

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

post-106152-0-47788800-1354535639_thumb.

  • 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

post-106152-0-34739000-1354535732_thumb.

post-106152-0-80489200-1354535738_thumb.

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

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.

  • 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?

post-106152-0-58431600-1354605627_thumb.

post-106152-0-36829500-1354605629_thumb.

post-106152-0-06474500-1354605635_thumb.

This is double posted..

  • 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.

  • Author

This is double posted..

 

yeah, sorry.

didnt know where to put it..

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

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.

  • 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.

  • 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.

post-106152-0-82385100-1355153617_thumb.

post-106152-0-94553300-1355153621_thumb.

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]

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

The URI scheme for FileMaker 12 is "fmp", not "fmpscript".

  • Author

The URI scheme for FileMaker 12 is "fmp", not "fmpscript".

 

yes, i changed it to fmp

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.