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.

how can I relate to a specific record in a one to many relationship?

Featured Replies

Hi,

I have a one to many relation where I would need only the last generated record out of the many-table. How can I do that? I always end up with the first dataset.

Thank you,

Bernhard

You need to sort the relationship or the portal. If the related data have serial numbers you can sort by them descending. Or you can sort by record creation timestamps, though this is less reliable if you create records in less than a second.

If you sort the relationship, you'll be able to access the last record in calculations and just everywhere you use this relationship. That is if you have Related::Some Field, it will return you a value from the last record. If you sort a portal, then you'll see the last record only in the first row of the portal.

It depends what you need it for. For example, if you need a value from the last related record, you can leave the relationship unsorted (which means sorted by creation order), and use:

Last ( relationship::field )

to return the value from the last record.

  • 2 weeks later...
  • Author

Thank you for your help - sometimes the issues are so obvious that it is a little embarassing not to have found the solution myself.. ;)

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.