Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Ok, so I am making a very simple Book Inventory DB. All I want to do is make a button that will sit besides the "Author" "Series" "Ratings" and "Genre" fields that, when clicked, will look at the current information in the appropriate field and pull up al records that match. I can't figure out how to set up the button to look at a specific field.

Thanks for your help.

Jbob

Posted

If you have FM 7 or later, you can send script parameter to script "Find Data" with your field contents...

Example:

Field: |AuthorField| [button]

On button you append script "Find Data" with script parameter AuthorField.

Script:

EnterFindMode

Set Field [AuthorField; Get (ScriptParameter)]

PerformFind

  • Newbies
Posted

Ok, I got most of it. I have the find script written, but I am not getting how you send the information to that script.

Right now I just have

Enter Find Mode []

Set Field [books::Author]

Perform Find[]

When you push the button, it just says that there are no valid Criteria for this request. So I didn't fully understand how to get the second part of the "Set Field" part of the script.

Thanks for your help!

Posted

That is done where you assign script on a button in the "button setup". There you choose perform script and where you choose script form the list, on the bottom is optional script parameter and as script parameter you pass the field you wish to search on.

And you have to change setfield script step and include Get ( ScriptParameter ) as I wrote in first post.

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