Dagel Posted February 4, 2015 Posted February 4, 2015 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!
LaRetta Posted February 4, 2015 Posted February 4, 2015 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 )
comment Posted February 4, 2015 Posted February 4, 2015 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.
Dagel Posted February 4, 2015 Author Posted February 4, 2015 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!
Recommended Posts
This topic is 3636 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 accountSign in
Already have an account? Sign in here.
Sign In Now