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.

get latest record

Featured Replies

Hi, I'm not able to solve a simple problem, due to my lack of experience.

I have tree tables:

Table1 --< Table2 --< Table3

I would like a button on layout1 (table1) which looks for the latest record on table2 MAX(table2::Date) returning the ID of this latest record.

Or in other words:

GET/RETURN table2_id where Max(table2::Date)

Why?

With this button I would like to create an new record on table3 which is related to the latest record of table2. So I need to know the table2_id

Thx for any hints

by

ChiSao

Sort your relationship. Double-click the line between the Table 1 and 2 in the relationships graph and choose the sort checkbox on the child table. Sort by date descending. Then, just call Table 2::ID from the context of Table 1.

Hope that helps!

  • Author

Thanks a lot!

You are super welcome! I am not sure if your name refers to martial arts of the city of Chicago. I flipped through your other posts and think you would really get a lot out of CAFDA or another FM users group if you are not in Chicago. Check it out at CAFDA.com and good luck with your learning!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.