Jump to content

Get newest value from a related field


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

Recommended Posts

I'm completely flummoxed. I have a customers table and an orders table. I would like a field in the customers table which will show only the most recent order quantity from the field orders::qty.

 

Ideally, I would like to do this without a script.

 

Thank you!

Link to comment
Share on other sites

Hi,

 

If your orders relationship is not sorted and if the last (most recent) quantity is the last record in Orders then you can create a calculation (result is number) in Customers with:

 

Last ( Orders::Qty )

Link to comment
Share on other sites

LaRetta- That was actually what I first attempted. I guess because it's a shadow table of an SQL database, it doesn't quite work the same.

 

Comment- Unfortunately, it's not just for display purposes.

 

Unless someone has a better idea, I think I'll need to create a mirror table of the SQL database and use the Last function.

 

Thanks to you both!

Link to comment
Share on other sites

This topic is 2859 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
 Share

×
×
  • Create New...

Important Information

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