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.

tell every (record whose ...)

Featured Replies

I've searched the forums and probably put in the wrong search terms and the Apple Events db does not provide examples that are helpful. I've looked at Hannaan's book where he describes how you can use the whose clause to work directly with a table's records without doing the Find steps.

I'm trying to get cell values of a select part of a table, but cannot within the tell block of the "whose" clause. Uncomment the below and you'll see my result. How would you iterate through this subset?

My goal is to save this info to a list, and then those values will be used to discriminate records that have this value. Each of those records have certain fields populated depending on what the value of "y" will be, if that helps.

thanx, sam


tell application "FileMaker Pro"

	tell table "2008X2DGEN"

	--	tell (every record whose (cell "AREA_ID__C" is "R8M00"))

			set x to count of records

			repeat with thisVar from 1 to x

				tell record thisVar

					set y to contents of cell "ADDRESS_NAME__C"

				end tell --thisVar

			end repeat

--the above works, but works on every record, not the subset in the 'tell block'

	--	end tell --r8 records

	end tell --table x2

	return y

end tell

  • 2 weeks later...

If your goal is to generate a list from those cells then you could go right to a list within the tell record.


tell application "FileMaker Pro"

    tell table "2008X2DGEN"

       tell (every record whose (cell "AREA_ID__C" is "R8M00"))

            set x to count of records

            set addressList to cell "ADDRESS_NAME__C"  

              end tell

        end tell

end tell

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.