bens Posted February 8, 2007 Posted February 8, 2007 I have a portal that show records (orders) related to a unique id field. The portal shows the ordre number, creating date and what has been done with the order. The portal can be many "records" long, what i need is it to show only the 2. last record fixed by date. Anyone who have any ideas?
sbg2 Posted February 8, 2007 Posted February 8, 2007 Set the portal to show only two rows, sort descending by date and don't check the box for "show vertical scroll bar".
bens Posted February 16, 2007 Author Posted February 16, 2007 Thanks for the quick answer. I can't do it like that, because sometimes there is more than 2 orders in the portal, i need a field that only shows the last ordernumber in the "row" I have attached a file to show how it is made. sort.fp7.zip
bens Posted February 16, 2007 Author Posted February 16, 2007 Thanks Raybaudi I Think i haven't maked my self very clear. What i need is not the last but the second last. In the ordernumber 2524260 it's ment to show 2524259 In the ordernumber 2524259 it's ment to show 2524258
comment Posted February 16, 2007 Posted February 16, 2007 I don't understand your file - shouldn't there be TWO tables? Say, Orders and History, related on OrderID? In any case, you can get information from the last but one related record by a calculation of: GetNthRecord ( SomeField ; Count ( RelatedTable::MatchField ) - 1 ) If you select the primary key of RelatedTable as SomeField, you can base a new relationship on the result.
bens Posted February 19, 2007 Author Posted February 19, 2007 I don't understand your file - shouldn't there be TWO tables? Say, Orders and History, related on OrderID? yes In any case, you can get information from the last but one related record by a calculation of: GetNthRecord ( SomeField ; Count ( RelatedTable::MatchField ) - 1 ) If you select the primary key of RelatedTable as SomeField, you can base a new relationship on the result. i don't understand, it won't work for my. i need it to always show only the last ordernumber, related on order id.
Recommended Posts
This topic is 6542 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