My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
Go to Article
Advanced Search 

ADVISOR TIPS

Extend the FileMaker Pro Found Set, Script Style

Learn how to script a find that adds matching records to your current found set of records.

By Stuart Gripman, Crooked Arm Consulting founder and president, and Advisor Basics of FileMaker Pro technical editor


This edition's tips are drawn from reader comments posted to the Advisor Web site. Subscribers can read a complete archive of this column and all the articles from Advisor Basics of FileMaker Pro.

Figure 1: Worlds collide! -- Robert Smith and Patty Smythe may never occupy the same room, but you can have them in the same found set.

In a previous column, I provided the following steps to perform a find that adds the matching records to your current found set of records rather than replacing the current found set with a new one.

  1. Perform a regular find for "Smith."
  2. Enter Find mode.
  3. Type "Smythe" in the Last Name field.
  4. DO NOT click on Find. Instead go to the Requests menu and select "Expand Found Set."
  5. FileMaker Pro performs the find and adds those records to the existing found set.

Reader Fadi commented in part, "I like the steps provided above. I was wondering how I can translate it into a script." Well, I'll give you two options.

Version one works just like the original example:
  1. Open ScriptMaker and create a new script.
  2. Add a Perform Find step to the script.
  3. In the Script Step Options area, check Specify Find Requests.
  4. Click on the New button to create the find request.
  5. From the list of fields, select the one you want to search. For this example I'm using a field called "nameLast."
  6. In the criteria box, type in your search term (I'm using "Smith"), and click on OK twice (figure 1).
  7. Now add an Extend Found Set step to your script and repeat steps 3 through 5.
  8. In the criteria box, type in your second search term (I'm using "Smythe"), and click on OK twice.

Save your script and try it out. After running the script you'll have a found set of all the Smiths and Smythes in the database.

Version two consolidates the Perform Find and Extend Found Set script steps into a single step:
  1. Open ScriptMaker and create a new script.
  2. Add a Perform Find step to the script.
  3. In the Script Step Options area, check Specify Find Requests.
  4. Click on the New button to create the find request.
  5. From the list of fields, select the one you want to search. For this example I'm using a field called "nameLast."
  6. In the criteria box, type in your search term (once again, I'm using "Smith"), and click on OK.
  7. Click on the New button to create a second find request.
  8. From the list of fields, select the same field you chose in step 5.
  9. In the criteria box, type in your search term (surprise! I'm using "Smythe"), and click on OK twice.
  10. Save your script and run it.

Version two returns the same results because the second find request is treated as an "or" search. Specifically, you're instructing FileMaker Pro to find all the records with "Smith" or "Smythe" in the nameLast field.

Extend the Found Set, Script Style

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    Stuart GripmanStuart Gripman is the founder and president of Crooked Arm Consulting, a FileMaker Solutions Alliance Partner firm in Berkeley, California. He previously held Senior Support positions at Claris Corp. and FileMaker Inc. Since 2000, Crooked Arm Consulting has offered custom FileMaker solutions benefiting a wide variety of people and causes from fine art patrons to the International Space Station. http://www.crookedarm.com stuart@crookedarm.com

    Printer-friendly
    page layout

    Keyword Tags: FileMaker, FileMaker FileMaker Pro, FileMaker Users

    ADVISORAMA
    The best is the enemy of the good.
    -- Voltaire

    ARTICLE INFO

    Advisor Basics of FileMaker Pro

    Web Edition: 2008 Week 25, Doc #19475

    Print Edition: Issue #15, Page 14

    FREE ACCESS FREE ACCESS

    SUBSCRIPTION STATUS
    You are not signed-in. If you are a subscriber to this publication, sign-in above to access locked articles. To subscribe or renew go to www.AdvisorStore.com.

    Subscribe to DATABASED.ADVISOR.com

    Get it all -- every current and past ADVISOR tech/business publication, now all-in-one subscription, with new articles and a huge reference library packed with expert advice, how-to and downloads. Subscribe now to get it all.

    DataBased.Advisor.com

    Subscribe to FileMaker Advisor Magazine

    Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

    FileMaker.Advisor.com

    Subscribe to Advisor Basics of FileMaker Pro

    Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

    FileMaker.AdvisorBasics.com

    Showcase Your Smarts

    Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

    AdvisorTips.com

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    Hosted by Prominic.NET Website powered by
    LOTUS SOFTWARE
    grips019-01 posted 06/16/2008 modified 01/09/2009 03:41:56 AM ztfmfu/ztfmfu
    domino-144.advisor.com my.advisor.com 01/09/2009 03:39:19 PM