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

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

Recommended Posts

Posted

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!

Posted

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

Posted

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?

Posted

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

Posted (edited)

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
Posted

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.

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