Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

OK... I'm a relative beginner to this. 

 

Is there an easy way to implement sorting by clicking on the column header in a list view? I've done some searches and tried to implement this (http://www.filemakerhacks.com/?p=2341) but I'm getting errors (Some fields in the sort order are invalid or cannot be sorted. You must remove these fields from the sort order before performing a sort.)

 

Is there a  fairly straight forward way to implement this functionality?

 

 

Posted

There is no built-in list view column header sort capability in FM. (Table view, however, does have it built-in, but table view is more often a developer-only layout).

 

Kevin's technique is as straightforward as it'll get, if you want the asc<>desc toggle. If you don't, then just change your column header to a button and assign it a Sort Records script step, and call it a day.

 

Remember, context is everything in FM. The error that you're getting suggests that the fields that are in the sort order are not available given the context of the layout. Kevin uses two fields only for the sort and populates them dynamically. There's a sample file.

  • Like 1
Posted

Hi Nick,

 

Why not post a copy of your file so that we can see what you have. This can often move your question along faster.

This topic is 4181 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.