Newbies jbob Posted October 19, 2006 Newbies Posted October 19, 2006 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
aldipalo Posted October 19, 2006 Posted October 19, 2006 This solution by NightWing might solve your problem. Its a free demo so take a look at it. http://www.nightwing.com.au/FileMaker/demos8/demo808.html HTH
DukeS Posted October 20, 2006 Posted October 20, 2006 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 jbob Posted October 20, 2006 Author Newbies Posted October 20, 2006 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!
DukeS Posted October 22, 2006 Posted October 22, 2006 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.
Newbies jbob Posted October 23, 2006 Author Newbies Posted October 23, 2006 (edited) That worked beautifully! Thanks so much!!! Edited October 23, 2006 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now