Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

show only last record

Featured Replies

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?

Set the portal to show only two rows, sort descending by date and don't check the box for "show vertical scroll bar".

  • Author

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

  • Author

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

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.

  • Author

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.

  • Author

:thankyou: both

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.