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.

using multiple match fields, is this possible?

Featured Replies

I have a question about using match fields in portals. After searching the forums here I can't see than anyone has talked about this before but I could have missed something. Its really a simple problem but I just can't see any way to accomplish this so any help would be greatly appreicated. I'm somewhat new to FM but am fairly comfortable with its complexities, so bring it on!

I have 3 tables in different files, one called Items, the other called Orders, and another called Customers. In the Customers file I have a a portal showing all of the orders for that customer. In the portal I have several fields showing the items and those items are actually fields from the orders table. The Orders table has fields that are then lookups into the Items table.

The idea is this, display a value list in the product code field in Customers portal. When an product code is picked from the pop-up value list all of the other data from that item is filled into the portal row (price, description, size, etc). Price, description, size, code are all fields in the orders table and they are all lookups into the items table. The produce code field is the match field. All this works very well.

My question is this .... is there a way to have multiple match fields in the portal? How can I create another match field, say for the description, which if filled in will cause the lookup to happen?

The documentation states that each lookup field is only triggered by one match field. Is there a calculation scheme that could be used or another method by which I can use multiple independant match fields?

Thanks,

Brian

Hi, Brian.

Is there a calculation scheme that could be used or another method by which I can use multiple independant match fields?

This is exactly what you want to do. FMP6 is a little annoying in that multiple-field match criteria per se are not possible. You will want to make a calculation field on each side of the relationship that is equal to a concatentation of whatever key fields you want to use.

You might also find it helpful to multi-key the right-hand side of your relationship. That is: Say you want to create a concatenated match field as i just described, and you want it to be based on Name & Color. So you make the concatenated fields on both sides. But what happens if the user wants to select all colors for one particular name? Simply selecting a Name (on the left side) will not produce any matches, because all the right-side fields have a name and a color. So, for your right-hand side, you might INSTEAD have a calculation like:

Name & "par.gif" & Name & Color

Which would make the result something like:

Toyota

Toyota Silver

This type of multi-key will allow the left-hand side to match when its concat. field is set to either Toyota or Toyota Silver.

HTH,

Jerry

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.