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.

Sort on a results page

Featured Replies

Hi,

I have a list of records which are generated from a search page. I have five columns on the result page:

Student Name, Center of Instruction, Date of graduation, Total points, Average Points

The records are sorted by Student Name, but I would like to allow the users to sort also by the other column headings, that is, I would like the user to be able to click on the heading to sort by that category.

Is this possible with CDML?

  • Author

Thank you, it's working beautifully.

I wonder, would you know if the search order (descending, ascending) could also be changed, that is, if names could be listed in ascending order, and scores in descending order. That would be nice.

Thanks again.

You can use '-sortorder=ascend' or '-sortorder=desend'. Check it out a bit more in the "CDML Reference" database.

All the best.

Garry

  • Author

Thanks again.

Ursula

Yes, you can use the [FMP-Link] tag with a <a> tag for each of the colum headings.

The <a> tag could look like this:

<a href="[FMP-Link: s]&-sortfield=total%20points&-Find">

Total Points</a>

Hope this helps.

Garry

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.