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.

concatenating from many related records

Featured Replies

Is there any way to concatenate all the values from a single field in multiple related records (one-to-many relationship)?

Specifically, a video conference booking is in multiple venues, but for display purposes, I'd like to show all the venues for a single video conference booking on one line. Is there any way of doing this in a calculation field?

I know that I can set up a portal for the booking and run a script to concatenate from each portal row, but I'd like to do it by a calculation field to avoid the possiblility of having outdated data displayed.

You can do it with a calculation, but with limitations. A script can concatenate an indeterminate number of records. A calculation can't loop and must be set up for a maximum number of records. You would need to create one relationship for each different record to be concatenated. Five records, five relationships. Five hundred records, you get the idea.

As an alternative you could define each display position on the line as a related field. With a clever definition on relationships, you can display the first booking/venue in the first position, the second in the second slot, etc. You don't really need to concatenate the data to display it in a row. The index would be a composite of venue/booking. When a booking was past, you would need to renumber the booking number.

-bd

  • Author

Thanks for the reply. Unfortunately, these methods are all a bit nasty, and not really true to the data model. However, they would work, provided circumstances were just right.

What I would really like to see (does this exist in FileMaker 5?) would be an aggregate function which would work similarly to the other aggregate functions, but instead of averaging, or counting all the related fields, it would concatenate them all.

Never mind.

(music) Fairy tales, can come true, it can happen to you.... wink.gif -bd

I agree. An aggregate concatenate function would be incredibly useful.

  • Author

Hey, I'm glad to see its not just me! smile.gif

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.