Skip 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.

Finding people using either first name or last name

Featured Replies

Hi !

I have 2 tables: Main table and personnel table. In the main table I have a "Name search" -field. When I start writing name to the search field I get a drop down list via relation to personnel file with auto-complete on (Main::LastName = Personnel::LastName). Only last name is possible to use for searching and selecting a person. Is it possible to define this relation or field so that I can use either first name or last name for searching ?

Hope you understand what I mean...

Create a calculated field that concatenates (joins) the first and last name fields:

firstname & " " & lastname

Do the search in this field.

  • Author

Create a calculated field that concatenates (joins) the first and last name fields:

firstname & " " & lastname

Do the search in this field.

Well... I created a joined field cName to the "Personnel" file and changed the relation from SearchField to point to that. It still gives me a list of only first names starting with those letters I type in. The idea is that when I start typing "John", the list shows me "John Smith", Matt Johnsson" etc. regardless if "John" is in first or last name.

  • Author

Any ideas ?

Why don't you post your file. I for one cannot follow what you describe, esp. "I get a drop down list via relation to personnel file with auto-complete on (Main::LastName = Personnel::LastName)".

  • Author

Why don't you post your file. I for one cannot follow what you describe, esp. "I get a drop down list via relation to personnel file with auto-complete on (Main::LastName = Personnel::LastName)".

The file I'm working with is too big to be sent, but I'll try to build up a sample file.

  • Author

Ok...

Here's the idea in a sample file. When I start typing "John" to the gNameSearch field, both first and last names containing "john" would be shown in the drop down box. Then I could use only one search field to find right person regardless I use first or last name.

Propably the solution is very simple, but I'm just lost with this.

NameSample.fp7.zip

It can't work that way when using auto-complete. You could try a scripted find instead, triggered OnObjectModify.

---

Well, maybe...

NameSample.zip

Edited by comment

  • Author

It can't work that way when using auto-complete. You could try a scripted find instead, triggered OnObjectModify.

---

Well, maybe...

Yes ! That could work - although I don't understand how you did it...

  • Author

It can't work that way when using auto-complete. You could try a scripted find instead, triggered OnObjectModify.

---

Well, maybe...

I have now tried to understand what you did in the file. I cannot see any changes there but now it works. So, what did you change there ?

The calculation field's formula.

  • Author

The calculation field's formula.

Oh yes !! Now I get it !

Thank you very very much !

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.