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.

Show latest date!

Featured Replies

Show latest date in field.

I have a portal row that displays products with date of purchase, on my main layout I would like to have a field that displays the latest date of the purchased product.

How can that be done?

Thanks

If you sort the relationship by dateofpurchase desc., then the parent will see the first child record which will be the most recent purchase.

This is the most accurate way, since the last created record may not be the most recent purchase.

  • Author

Sorry it was not to clear. I have a field in my layout and a portal. In the portal all the date entries are displayed, but in the field it should just show the latest date info from the portal record.

Picture_1.jpg

Edited by Guest

Use the Max Function with the same relationship as the portal.

  • Author

What is the max function?

It is one of the Aggregate functions.

From FMP Help:

"Returns the highest valid value in:

a repeating field (repeatingField).

a field in matching related records specified by (table::field), whether or not these records appear in a portal.

several non-repeating fields in a record (field1;field2;field3...).

corresponding repetitions of repeating fields in a record (repeatingField1;repeatingField2;repeatingField3), if the result is returned in a repeating field with at least the same number of repeats.

several fields in the first matching record specified by (table::field1;table::field2;...). You can include fields from different tables (table 1::field A;table 2::field B...)."

  • Author

Works great! Thanks

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.