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.

Perform Find Script with a variable for criteria

Featured Replies

  • Newbies

Howdy all,

I've reached a bit of a dead end with an idea I want to implement in my FM7 v2 database.

Here's my situation and what I would like to do:

My database consists of multi-page forms that the users fill out. Each form has its own table due to the large number of fields required per each form. One field (Job#) is present in all tables and I've used it to relate the tables together. I

Hello Benjamin,

It's true that the Perform Find script command in FileMaker v7 does not support the use of field values. However there are some relatively simple alternatives.

One way you might go about it is to set up your script to transfer the value(s) that you want to find into a global field prior to entering find mode, then use a Set Field[ ] comand in find mode to transfer the contents of the global field into the relevant field you wish to search on and then have the script perform the find without specified criteria (it will use the criteria entered by the Set Field [ ] steps).

That way your finds can be fully scripted, yet can also be dynamic. wink.gif

  • Author
  • Newbies

Hello Ray,

That sounds perfect! I'll be the hero in my lab thanks to you! smile.gif

Ben

You can also use a relationship from a global text field to the Job# field. When the job number is entered into the global, a Go to Related Records [show, gText_Job#] script step will find only the related records. It can be faster than a Perform Find too. If you have a portal using this relationship, it will immediately display related records after entering the job number and pressing Enter. So you could display all related records without changing your found set, and put a button over the first portal row that goes to the related record only if one is chosen.

  • Author
  • Newbies

That sounds like a good way to go about it. This is a great forum. Thanks

Benjamin

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.