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

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

Recommended Posts

Posted

Is it easy to create a script that recreates the sort funtion like Excel or just about any windows program's column. You know, when you click on the title of the column and it sorts by that column. I have a list of a few items that I would like to allow the user to click on the column (specify button) and run a script that does this. Any thoughts?

Posted

In FMPro 5.x or higher you can use the table view.

If you go into layout mode and then to the layout > layout setup menu you can click on the views tab and in the table view option click the properties. Check the sort data when selecting column.

Otherwise you have to -

1. do a manual sort for each field in the list,

2. script each option.

3. Assign each script to a button on the layout

plus if you want to sort ascending or descending on one button you have to sort each way for each field and script to select the reverse of what the last sort was.

HTH

Posted

Thanks Andy, I think I'd rather do the latter bucause it looks cleaner to the end user (filemaker developer). Why is it though, that when I do the sort, in the script without a dialog, the last sort is perfomed and not the sort I set up for each column? Is this a function of the dialog that says "keep" or "replace" after I exit scriptmaker? I guess I don't quite understand that dialog.

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