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.

Scripting a sort function

Featured Replies

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?

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

  • Author

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.

  • Author

Wait Wait Wait... I got it. I opened up the user manual (pg 10-4) and read through it a bit along with your help. Thanks...

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.