Variable Field Portal Sorting
With many native features in Claris/FileMaker, you may end up hitting what you "think" is a brick wall. In this case, I'm referring to the ability of sorting portals. You've only got one checkbox per portal with the options for specifying a selection of fields to sort by. True, you can choose a number of fields to sort by, but, you can't change their order dynamically or allow a user to make any changes to which fields are used.
That is, of course, unless you combine a variety of native features which will allow you to accomplish your desired results for sorting portals. In this video, we take a look at a wonderfully great technique for being able to sort any given portal on any number of fields in either direction and being the masters of our own portal sorting destiny. Need to allow end users to sort portals for maximum effect? Go no further than watching this video and using the provided technique file.
Comments
Simple and neat
Thank you for this, Matt. I have been using VirtualSort for years and it works well with a similar approach with a dynamic serach field but using a more advanced scripted solution together with some custom functions. The advantage with that approach would be that everything is specified by script parameters and there is thus no requirement to hard code field names in scripts or custom functions. I combine that with a buttonbar sort indicator technique from you a few years back. It would be interesting to see how these two techniques compares performance wise.
Sort indicators don't work on Windows
FYI - As it is currently configured, the sort graphics don't show on Windows. It just shows an empty square box. I am using Windows 10 with the latest 19.6.3 version of FileMaker. I have seen this before with other solutions that use graphics from the Mac.
Change the value within SortIconAsc/Dsc custom functions
There are custom functions which control which icon is used. I should have tested on Windows, but you can effectively use the following within those custom functions.
Choose ( Abs ( Get ( SystemPlatform ) ) - 1 ; "[mac icon]" ; "[win icon]" ; "[iOS icon]" ; "[web direct icon]" )
-- Matt Petrowsky - ISO FileMaker Magazine Editor
1MT Sort Add-on
Reminds me of this 1MT_Sort add-on (works in list views too). Did you compare performance?
https://www.add-on-olam.com
Web site
Twitter
I've not...
A bit delayed of a reply, but no I've not seen the add-on. I don't personally use add-ons very much. I'll have to take a look.
-- Matt Petrowsky - ISO FileMaker Magazine Editor
Data Separation?
Will this work in a data separated model?
Date Fields
I have implemented this custom function and works great on text fields, but it returns Error when I use a date field.
Is there a change to the custom function for date fields?