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.

Need help finding multiple matches

Featured Replies

  • Newbies

I'm trying to get a field to look up multiple matches to find a name, but FM only looks it up successfully if there's a single name.

I have a database of news articles.

Another database contains employee names and other info, including a field that has a brief "summary" description of that person.

My goal is to look up the article text (a field called "story") to see if an employee is named in the text. If so, a calculated "people" field should get the name from the employee database and add the short description behind it.

I can get the relationships to work when I type a single name into the match field, but not when more than one name is typed in.

In addition, I can't figure out how to get the calculation script to find a person's name inside the long story text. There doesn't appear to be a formula that finds a simple word match inside another field.

So I guess there are two problems to solve. But I can live with having people manually type the list of names from each story if necessary to create the lookup.

Can anyone help? Thanks

------------------

= George Pytlik =

[email protected]

  • 2 weeks later...

The reason this doesn't work has to do with the way filemaker indexes. Each word of text separated by a breaking space (not option-space) is indexed separately. A seach for John Jones finds all occurrences of "John", "Jones" and "John Jones".

As to a function, create a global text field called gSearch and create a field TextFound? = PatternCount(ArticleText, gSearch), result is number. Set gSearch to the desired search string and performa a find for TextFound? >0.

-bd

Create an account or sign in to comment

Important Information

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

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.