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

Selective sorting

Featured Replies

Hello

I have a database with about 253 records. How can I sort them in such a way that it only shows me the 6 more recent ones in a layout.

Thanks in advance

Pablo Ramirez confused.gif

Well, what I would do is to first make sure that you have fields in the DB for CreationDate and CreationTime. Then sort by CreationDate - Descending and CreationTime - Descending. Now you have them sorted most recent to last.

Then if you only wanna see 6 of them, create a list view layout, where you modify the Header, Body and Footer, such that only 6 Records will show in the screen. Alternately you could setup a relationship sorted as above and format a portal to show only 6 records.

Here's another way... it's not a sort but it will show the most recently added 6 records as a found set.

Script the following:

Show all records

Go to record [last]

omit record

omit record

omit record

omit record

omit record

omit record

show omitted

Go to layout [list view]

Then you just have to have a list layout that will fit all 6 records.

  • Author

Thanks a lot. I'm gonna try it right away

Pablo

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.