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.
Juggernaut

Updating a field instantly when a record in a related table is added, help please.

Featured Replies

I have a database with a list of students, and their employment history. The employment history is stored on a table and I have a portal on the student layout that shows the employment history (I also use the portal to add new employers to the history). The last record in the portal is obviously the current employer.

I also have a list layout which lists all the students and their current employer. I am having trouble getting the field to show their last (current) employer.

I created a button with a script that updates the field and it works, but how do I get the field on the list layout to update the moment a value is changed?(In other words the moment an employer is added in the portal on the students layout)

The problem with the button is that it has to go through every record and updates it (even if nothing new was entered.) And I have 12000 records, so it takes quite a while. Would be MUCH nicer if the update could be "live". Help would be greatly appreciated.

Thank you.

Edited by Guest
removed link

If the calculation of Last (History::Date_Employ) is correctly on the parent side then on your list layout, if you put that calc on it, it should work for you. Are you sure you arent missing something?

  • Author

I did it that way with an auto enter calculation, but It wont work. But when I use a button that with SetField[students::Emphist; Last(Employment::ClientID) it works. Why wont the Last(Employment::ClientID) calculation work with auto enter?

  • 2 weeks later...
  • Author

I used an auto enter field with the calculation option. I should have used a calculation field... It works perfectly now... Much easier than I thought. Thanks for the help though.

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.