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

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

Recommended Posts

Posted

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?

Posted

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

Posted

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

Posted

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.

Posted

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.

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