Steven,

I thought I would pass on something that has been helpful for me in regards
to sorting.  

Back on September 1, 2016 a gentleman by the name of Flury Oliver posted a
link to a 4D shell he calls the data browser.  Here is the link to his post
(not sure if I can post a link).

http://4d.1045681.n5.nabble.com/4D-Shell-or-not-so-much-td5747143.html#a5747180

I checked his link to his shell and it appears to still work.  

As a part of his shell he included a set of utility routines in a component
called FSUty.4dbase.  The utility routines include two methods called
UtyLB_SaveUserSort and UtyLB_SetUserSort.  The Save User Sort method is
placed in a listbox "on after sort" event and the Set User Sort method is
placed anywhere you want to update/resort the listbox.  I've created a shell
of my own in which I provide many simple ways to modify a listbox selection
and I needed a simple way to maintain the sort order.  This has worked
wonderfully with one exception... it doesn't handle calculated column sorts.

The methods are pretty short so I could post them here but not sure if that
would be appropriate.

Also, not sure if this will help you but I thought I would pass it on. 

fyi...  Just a note on the data browser shell.  I've found it to be a
wonderful resource not just because of some excellent sample code that is
included but I've learned a lot of programing techniques from how Mr Oliver
does his programing.  Much of it is still over my head (his use of language
objects for example) but I am very grateful for his sharing this with the 4D
community.




--
View this message in context: 
http://4d.1045681.n5.nabble.com/Permanently-Sort-Data-tp5750242p5750350.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to