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.

Text comparison of "equals" but not quite

Featured Replies

In a demo file I have there's a relationship between two tables between two text fields that should equate to equals but it's not explicitly put as such and doing so breaks the functionality of it.

What they have is "f1 <= f2 AND f1 >= f2", what does this make filemaker do?

Please post the actual relationship and sample data.

  • Author

I'm referring to the "Type Ahead" portal relation in NightWing's demo (http://www.nightwing.com.au/FileMaker/demosX/demoX03.html)

Basically you have two tables, one table contains the first and last name fields of a contact, and a "search key" field (the format of that field is last name on the first line, then last name space first name on the next line). You then have a "Type ahead" table, with one relational (and the only used) field, "filter", this field is global. Filter's format is on the first line whatever you typed in, on the second line it's whatever you typed in + "zzzz" (the format for an "empty" filter is first line "0" second line "zzzz").

The relation between the "filter" and "search key" is the one described as above:

filter <= search_key AND filter >= search_key

edit: all fields are text types. What I don't get is that because of the AND clause the <= and >= should end up being = because < AND > cancels out.

AND does not cancel out. The relationship filters to show all entries where either the first name or the last name name are alphabetically between the filter. The multikey is carriage-return delimited, and so each value is treated separately and that's how he accomplishes the OR.

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.