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

Find based on field value in a different table


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

Recommended Posts

  • Newbies
Posted (edited)

Table1::Field1 is a global field. It contains a value I'd like to use in a find with Table2::Field2.

I've tried the following as the Criterion in ScriptMaker:

Table1::Field1

==Table1::Field1

"Table1::Field1"

GetField("Table1::Field1")

==GetField("Table1::Field1")

None of these work. A literal does work. What am I missing?

Thanks.

Edited by Guest
Posted (edited)

In your layout for Table2

Enter Find Mode []

Set Field [Table2::Field2; Table1::Field1]

Perform Find []

Globals fields values are global across the records in the table. You can perform a normal scripted find and just set the field to the related value that you want.

Also, with a cartesian 'X' join, you can have all the records in Table1 related to all the records in Table2.

Edited by Guest
  • Newbies
Posted

Thanks. That worked well and I added a few more Set Field calls.

Will be checking out that white paper.

I've worked in MS Sql for a long time and find FileMaker terms confusing. It's getting easier.

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