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.

Constrain found set with calculation

Featured Replies

How to do this?

2 fields (name, data)

I'd like to show all "data" with calculated result "name"

so

1. show all

2. constrain found set with calculation to specific "name"

I wanna do it through ShowAll->ConstrainFoundSet, and not through EnterFindMode->SetField->PerformFind

is there a way to use ConstrainFoundSet with calculation?

As you will be scripting this then why not pass your variables into $vars. Use the SetFIeld script step to enter data into the fields during your find request.

I wanna do it through ShowAll->ConstrainFoundSet, and not through EnterFindMode->SetField->PerformFind

You CAN do it through:

Show All Records

Enter Find Mode []

Set Field []

Constrain Found Set []

However Show All Records, then Constrain Found Set[] is redundant. Perform Find[] achieves the same thing more efficiently.

  • Author

thanks for the response everyone

the goal here is to have as little scripting as I can to perform constrain data within a found set.

is there a way to do "Find" within a "Found Set"?

as I understand Perform Find[] is searching throughout the entire database.

Edited by Guest

is there a way to do "Find" within a "Found Set"?

Yes, with the Constrain Found Set[] step.

As mentioned earlier, if your criteria is dynamic (i.e. calculated at script runtime), you need to use the following structure:

Set Variable [ $name ; ]

Enter Find Mode []

Set Field [ YourTable::Name ; $name ]

Constrain Found Set []

Constrain is available as a menu command, no scripting required. That's how you find within a found set. Seems like your question was already answered, but I might not be understanding what you really want.

Keep in mind that unless "name" is a global field, it won't have a value in Find Mode. Therefore you'll want to use Set Variable to store it, as suggested above.

In FM11 you can use variables directly in Find/Extend/Constrain script steps, but as your profile indicates FM9, you'll need to use the Find>Set Field>Constrain script construct as the post above yours explains.

thanks for the response everyone

the goal here is to have as little scripting as I can to perform constrain data within a found set.

is there a way to do "Find" within a "Found Set"?

as I understand Perform Find[] is searching throughout the entire database.

Thinking slightly out of the box here, would GTRR(FS) perhaps fit the bill. Provided each of the fields are selfjoined to themselves ... something not very far from:

http://sixfriedrice.com/wp/deleting-duplicate-records-in-filemaker/

But here is a single line of script, perhaps attached to a button only, all it really takes.

--sd

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.