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.

Resorting portals by clicking on column headers

Featured Replies

The desired capability: To have portal records resorted by clicking on portal column headers.

I've already implemented my own solution. The reason I'm posting this is because I'm confused by all the solutions to this problem I'm seeing out there in Filemaker land. I haven't seen anything as elegant as what I've done and I'm just wondering why some of the solutions I've seen are so complex and bulky.

My solution:

1) Create a field called 'portal sort number' in the file that your portal looks into.

2) Define your portal to sort on 'portal sort number'.

3) Attach portal header text for column X to a script that sorts your file on field X then loops through all the records in the file setting 'portal sort number' to status(CurrentRecordNumber).

That's it. Click on column X and your portal resorts on field X.

I've seen scripts 100 lines long for accomplishing exactly the same thing. Am I missing out on something?

What I REALLY wanted to do was just have 'portal sort number' be a calculation field set equal to Status(CurrentRecordNumber). Then even the looping script would be uneccesary. Alas, this doesn't work - not quite clear on why it doesn't work. Better yet, wouldn't it have been nice if they made the special Record Number field available for portal sorting. Then you wouldn't even need the 'portal sort number' field at all.

Have you tested this in a multi-user environment? What if two or more people are viewing the same portal? I think it would re-sort the others portal!

Trevorg is correct: it's a great solution for single-user, but might not work well in multi-user.

The most reliable, robust (and easiest) method is to create multiple relationships, each with the desired sort. Create a different layout each with a differently sorted portal: the sort buttons really switch between layouts.

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.