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

Merge "User Last Name" and "City Name."

Featured Replies

Dear FileMaker Gurus:

I was required to merge "User Last Name" and "City Name," into a 10-gigit "User ID." I will take the first 5 letters of each. If any one is less than 5, "-" will be filled in, instead.

Please help on the Field Definition and Calculation!

Appreciate it!

Max NY

Left (User Last Name & "-----"; 5) & Left (City Name & "-----"; 5) &

A client ID should be unique.

Your calculation would be [color:blue]Left (User_Last _Name & "---" ; 5 ) & Left ( City_Name & "___"; 5) would allow duplicates.

Try a name and city as

Chan, San Francisco

Chandler, San Franciso

or

Smith, Lee, Sacramento

Smith, Tom, Sacramento

I came back to add this and I see two others have also given the same basic calculation.

What I was going to add, is thsi Client ID wouldn't even be a good Duplication calculation.

HTH

Lee

Edited by Guest
duplication

Case(

not IsEmpty ( User Last Name ) and not IsEmpty ( City Name ) ; Left ( User Last Name & "-----" ; 5 ) & Left ( City Name & "-----" ; 5 ) ;

""

)

I agree with all that using UserLastNAme and User City is not a unique field and is destined for problems. Especially in large cities like New York. If you must combine user name and some other identifier try lastname and phone or lastname and zip or lastname and a serial number which ultimately would be best. Unless you have a VERY SMALL group of users and don't expect to ever grow you will be kicking yourself in the future.

  • Author

Thanks all of you!

Yes! Merging "User Last Name" and "City Name" is really prone to "duplicate" problem!

Max NY

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.