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.

"spotlight" search

Featured Replies

Hello!

I am trying to implement spotlight search

http://www.secretweaponlabs.com/words/2005/09/24/spotlight-and-filemaker-redux-building-a-filemaker-search-engine/

but am getting stuck on the eventscript function. My Script seems to work fine if I run it independantly, however if I try to trigger it with an auto enter function:

Case(not IsEmpty(Search Field); S4HU_EventScript( Get(FileName); "Search Script"; Search Field))

the search isn't performed. Has anyone got any advice? If I haven't provided sufficient info - just let me know!

Is "Search Script" in the same file as Search Field? Is the Auto-enter "Do not replace" checkbox UN-checked?

  • Author

Yup they are both in the same file. The auto enter "do not replace" was checked, but changing that doesn't appear to have made a difference.

I am getting a "?" entered into the search field on the layout after the script is running, not sure if that sheds any light?

  • Author

Well I've solved the question mark problem, I had the script name entered incorrectly, but the script still isn't running....?

When I looked, the function was "missing". When I replaced it, it worked:

Case ( not IsEmpty(Search Entry);

S4HU_EventScript ( Get(FileName); "SearchScript"; "")) &

Search Entry

[P.S. I am using the Universal Binary (UB) version of the plug-in. If you're running on an Intel Mac, running FileMaker 8.5+, you must use the UB version. I see you aren't though.]

Edited by Guest

  • Author

Thanks Fenton, that has sorted out the problem! I suspect among other things, that the Universal Binary issue may have been part of the problem - how you can read into this stuff so well I'll never know!

Thanks again.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.