Sorting headed lists
David Barnett
David at FairLibertysCall.com
Wed Jul 9 14:52:13 EDT 2014
Perhaps have a 'sorting' column sitting there. When a column header is clicked, grab the calculation for that column and use a $sendall (or similar) which calculates and puts the value into that sorting column for every line in the list. Then do the sort on that column. You never view this one. Just refill it each time the list is sorted.
David
David Barnett David at FairLibertysCall.com
C: 516-398-8668 www.FairLibertysCall.com
On Jul 9, 2014, at 2:49 PM, Jean Marc Azerad wrote:
> Thanks Bruno and Brian,
>
> This is the kind of solution I was trying to avoid because I'm dealing with many columns, not just one, and the pre-processing is complexe while I do have and can see the result just on my screen! But can't get it!
> Frustrating...
>
> Thanks again
>
> JM
>
>
>
> Le 9 juil. 2014 à 20:25, Brian O'Sullivan <brian.os at verizon.net> a écrit :
>
>> I agree with Bruno - when my headed-list display gets “too tricky” I set up additional columns in the underlying list variable. These “display columns” can even include style() info for special formatting, etc. I don’t know of any way to access the “$contents” of a displayed column in a headed list comparable to the $contents of an entry field, so I think the pre-processing in parallel list columns is the best approach.
>>
>> regards,
>> -brian o’sullivan
>>
>> On Jul 9, 2014, at 2:13 PM, Bruno Barthélemy <barthelemy at bbsoft.ch> wrote:
>>
>>> Hi JM,
>>>
>>> If content is calculated line by line (at building time ?), adding the result in a new column and faking the sorting zone looks like a rather simple solution.
>>> Too simple and my brain is somewhere else...?
>>>
>>> BB
>>>
>>> Le 9 juil. 2014 à 19:55, Jean Marc Azerad <azerad.jm at wanadoo.fr> a écrit :
>>>
>>>> Hi $all,
>>>>
>>>> It's late and my brain is somewhere ... but can't find it... Maybe its obvious, maybe not...
>>>>
>>>> When clicking on the header, I need to sort a headed list depending on the CONTENT of the displayed column, not the underlying list variable...
>>>> The content is dynamically calculated line per line and quite complex (include pick() con()..., so choosing fields in the list is just not possible.
>>>> Any clue anyone?
>>>>
>>>> Thanks!
>>>>
>>>> JM_____________________________________________________________
>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>
>>>
>>>
>>> --
>>> Bruno Barthélemy
>>> BB-Soft
>>> Pavement 9
>>> 1018 Lausanne
>>> Switzerland
>>> T +41 21 312 29 49
>>> F +41 21 312 45 54
>>> E barthelemy at bbsoft.ch
>>>
>>>
>>>
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list