Skip 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.

How do I script a Multiple Request Find?

Featured Replies

  • Newbies

Hi,

I'm trying to script a find that would search for multiple values in only one field.

Basically, I have a list of values (230) of them that I'd like to find all at once instead of having to manually add find requests for each of them. The find is limited to one field.

Any help is appreciated.

If you can put that list into a global field, you could use the Go to Related Records and "find" the records in one step. But that works best if the list is a carriage return delimited list of record IDs.

If you can explain how you gather your find criteria list, perhaps I can help you to build this technique.

Otherwise,

Enter Find Mode

Set Field (field, "value")

New Request

Set Field (field, "value2")

repeat as needed

Perform Find

  • Author
  • Newbies

Please note: I'm using FMPro 5.5 to do this. The FM solution at hand is unfortunately locked into that version.

In a nutshell, I have a list of 230 record ID's in .xls format. I'd like to find all of the records matching those ID's at once by searching the databases 'Record ID' field. I'm imagining a script could do it, and the latter part of your previous suggestion was helpful, but 230 iterations in a script seems a bit much, no?

You mentioned using a global field and GTRR...can you elaborate on that approach?

Are they in a range of numbers?

  • Author
  • Newbies

Unfortunately, they're not. Here's a snippet of the 230:

122619

124967

65154

119271

73284

124977

72616

123118

124961

122627

73742

121608

110939

36065

124978

111504

83644

121419

66652

121570

72124

124209

46405

In the table that you wish to match record IDs, create a global text field. Enter your list into the global field. Create a relationship that matches on this global field to record ID. (When FM uses a list in the top half of a relationship, it's an OR search).

Now go to related records using this relationship.

btw, this seems to me to be one of those questions that having more background would probably help. For example, why are FM rec IDs in Excel? How did they get there? Were these recs "marked" somehow in FM then exported?

Edited by Guest

This part is not clear:

I have a list of 230 record ID's in .xls format

How do you get them over to Filemaker - as separate records in another file?

I wonder if v5.5 had matching import - because that would create a found set straight from the Excel file (assuming the values are in a column there).

Well, until we find out how FM's RecIDs ended up in Excel...I only have FM6 installed. It's the old do an import and save it and never see it, but I bet your idea would probably work.

  • Author
  • Newbies

I went ahead and used the 'Go to related record' via a global field and it worked out perfectly!

Thanks.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.