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.

Get newest value from a related field

Featured Replies

I'm completely flummoxed. I have a customers table and an orders table. I would like a field in the customers table which will show only the most recent order quantity from the field orders::qty.

 

Ideally, I would like to do this without a script.

 

Thank you!

Hi,

 

If your orders relationship is not sorted and if the last (most recent) quantity is the last record in Orders then you can create a calculation (result is number) in Customers with:

 

Last ( Orders::Qty )

Or - if this is for display only - you could use a one-row portal showing only the most recent order. You can use portal sorting or portal filtering to achieve this.

  • Author

LaRetta- That was actually what I first attempted. I guess because it's a shadow table of an SQL database, it doesn't quite work the same.

 

Comment- Unfortunately, it's not just for display purposes.

 

Unless someone has a better idea, I think I'll need to create a mirror table of the SQL database and use the Last function.

 

Thanks to you both!

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.