Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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


This topic is 6635 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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?

Posted

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

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.

This topic is 6635 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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