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.

Multiple find requests question

Featured Replies

Ok, I'm new to FMP so it may be simple, but I still need help.

I'm trying to use a layout (in browse mode) to find records in related tables. I want to use two or three fields to make research in another table. If I use only one field, I can do a copy-paste, but it doesn't work (or I simply don't know how) with more than one field.

Can someone help me?

Thanks

Use global text fields. Allow User to enter information then provide a GO button. Script attached to button, for an AND condition, would be something like (untested):D

Allow User Abort [ Off ]

Set Error Capture [ On ]

Freeze Window

Go To Layout [ yourRelatedLayout ]

Enter Find Mode [ ]

Set Field [ Related::Field1; Main::Global1 ]

Set Field [ Related::Field2; Main::Global2 ]

Set Field [ Related::Field3; Main::Global3 ]

Perform Find [ ]

If [ Get(LastError) ]

Show Custom Dialog [ "OK"; "No Records Found" ]

Show All Records

Go To Layout [ Original Layout ]

End If

If you want an OR condition, ie, anything matches change Set Field[] portions to:

Enter Find Mode [ ]

Set Field [ Related::Field1; Main::Global1 ]

New Record Request

Set Field [ Related::Field2; Main::Global2 ]

New Record Request

Set Field [ Related::Field3; Main::Global3 ]

Perform Find [ ]

Note: The globals can come from anywhere because they can be accessed from anywhere; even unrelated tables. I use many of the same globals for various things.

  • Author

Thanks, that's helpfull

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.