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.

Featured Replies

This must be a very dumb querry.

Would Max(::RelatedByConstant:CompoundModDateAndHour) always return the Latest Compound suitable for a relationship to an Indexed Field in the Related File.

I'm trying to find out the best way to grab the latest modified ID in a related file.

Would a concanation of Time and Hour get greater and greater,

crazy.gif

Version: v6.x

Platform: Mac OS 9

I should think if you used a concatenation of date and time set as a number, the number would increment as desired.

  • Author

Hi JT,

Thanks for the confirmation. It works a charm. I was concerned I could have missed some point before going this way.

Version: v6.x

Platform: Mac OS 9

Although it's undocumented, you can use the Last() function to do this. It will always retrieve the value from the last related record.

  • Author

Hi,

In this instance Bob, I was looking for the latest modified value, not just the latest value.

Am I missing something ?

Version: v6.x

Platform: Mac OS 9

If you have the relationship sorted by date and time fields [ascending], then Last( ) will give you the most recently modified value. If you sort them descending, ::RelatedByConstant:CompoundModDateAndHour itself will give you the correct value since the first related record is the most recent. It all depends on which one works faster for you.

I think either of these methods would be faster than a Max( ), but I'm not sure whether the difference is negligible with a large record set.

  • Author

Wow,

How could I miss this obvious. I was focussed on the Concanation field, and totally forgot the individual fields themselves.

Sure, as they are indexed (scripted), these would be suitable for a sorting relationship.

Thanks both of you.

Version: v6.x

Platform: Mac OS 9

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.