Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

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.

Posted

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

  • Newbies
Posted

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?

  • Newbies
Posted

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

Posted (edited)

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
Posted

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.

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