February 4, 201511 yr 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!
February 4, 201511 yr 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 )
February 4, 201511 yr Or - if this is for display only - you could use a one-row portal showing only the most recent order. You can use portal sorting or portal filtering to achieve this.
February 4, 201511 yr Author 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!
Create an account or sign in to comment