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.

Creating a Field that will have the latest modficiation timestamp from all related fields

Featured Replies

Hello,

 

I have an events management database.

 

I have a list of Events records in list view, in a layout I call "Event Search" and I wish to sort these according to the most recent that have been modified (or even better, according to most recently visited).

 

The problem is there is a large quantity and deep network of related child records associated with an Event record. I wish to get the most recent modification timestamp from ALL the related records (from tables such as Estimates, Estimate Lines, Planning Document Lines, and more!).

 

I've thought about this various ways:

 

1) A related table with a field that is updated/calculated anytime a related record is updated

2) A script that populates a timestamp field in the Event record anytime a related record is visited.

 

I have a "Google" like search in this Event Search layout, that will allow users to quickly narrow their search.

 

It is working well and I am willing to give up on this endeavour if it is too complicated or taxing for the database; but it would be nice to have the Events sorted with the most recently visited/modified on the top of the list. And this would mean somehow getting a field to capture the most recent modified timestamp from the potentially hundreds of child records.

 

Any suggestions would be much appreciated.

 

 

 

A script that inserts the results of this?

And some artfully placed script triggers.

 

 

stampModify is a field in each table that is set to add modification TimeStamp

perhaps a server side script that will daily update this field with the same calc?

Max ( List ( Events::stampModify ; Estimates::stampModify ; EstimateLines::stampModify ; PlanningDocumentLines::stampModify ) )
  • Author

Thank you!

I will try this and try and make this work.

 

All best

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.