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.

Table field calc to concatenate related record names from IDs

Featured Replies

Hello,

I'd like to add a field to my Images table with a calculated list of Subjects that appear in the image. I'd prefer it as a calculated field in the Images table so it can be added to a portal in a different database which selects multiple Images for something like an album.

Data Structure w/ Relevant fields:

Images table

-ID

ImageSubjects table (record creation/deletion by Images allowed)

-ImageID (joined with Images::ID)

-SubjectID

SubjectsList table

-ID (joined with ImageSubjects::SubjectID)

-Name

Data entry in Images allows the selection of multiple Subjects via a portal.

Here's what I'd like to do in pseudo-code:


foreach ImageSubjects::ImageID

where ImageSubjects::ImageID = Images::ID

push @Subjects, SubjectsList::Name



return join ", " @Subjects

Is this possible?

Thanks!

Jasmine

Try:

Substitute ( List ( SubjectsList::Name ) ; ¶ ; ", " )

  • Author

Thank you for the suggestion, but that yields an empty field. Perhaps I'm missing a relationship?

No, it should work with the relationships you have described. Make sure you are using a calculation field with the result type set to Text, and that you do have related records.

---

And that the calculation field is defined in the Images table, of course.

Edited by Guest

  • Author

I should have know that I did something silly. It worked perfectly... thank you!

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.