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.

Adding find request from a field value

Featured Replies

I have a table of Students records related a table of their Grades. There is a one Student record to many Grades records relationship (e.g. a record in the Grades table for each subject a Student studies).

Each Grade has a field for "year". As we move into a new academic year, I want to restrict finds on the Grades table to grades for the new year only (i.e. find only those records from the Grades table with an entry of 2006 in the year field, excluding those for 2005, unless the user specifies 2005 in the Year field explicitly).

I also have a table with a single record which has constants such as the school name etc, and the current academic year (now set to 2006).

Q: How can I get my find script to use the value from the current academic year field in the Constants table (record 1) so that only grades for the current year show up when searching the Grades table?

As a quick fix just now, I've just restored find requests to GradeYear = 2006 in the script, but this will require updating each year.

You can use the 'Set Field' script step to set the field in find mode. This could either be set from data you have previously stored in a Global field, or if you upgrade to FMP 8 a script variable.

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.