Sorting with arrays work fine, but pls. remember that you need more work for
the "Next records / previous records" function.
And, if a record get updated, then you have the old entry in your array, so
you must hit the database again to reload the array. If you don't do so, you
get frustrated :-))
Depending on the records resultset (short search or a long search) I suggest
to make a reload of the data's, but if you have a lot of DB Hits, then the
array solution is faster.
regards
Daniel
----- Original Message -----
From: "Dale Graham" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 12:40 PM
Subject: Re: Witango-Talk: Sorting with clickable columns headers
> Just create an array (If in the same action, I also put the search
> under an @if (If array doesn't exist, search)
> Then have sort info in the clickable link
> Then when the user selects the link, have something along these lines
>
> <@ifequal "<@arg sort>" "up"><@sort array="local$myarray"
> cols="1"><@else> <@sort array="local$myarray" cols="1 DESC"> </@if>
> The page reloads with the resorted data, but you have no additional hit
> on the database.
>
> On Friday, August 16, 2002, at 03:43 AM, Alex Smersi wrote:
>
> > [WiTango 2000 Win/Linux]
> >
> > Hello --
> > anyone can suggest me a valid approach or tecnique [or a simple TAF]
> > to create a template that I can use to implement sorting of clickable
> > columns?
> >
> > After that I have created [with search action] a list of record, my
> > goal is to sort [ascending and descending] columns with a click on
> > specific column header
> >
> > Any suggest is appreciate
> > Alex/
> >
> > _______________________________________________________________________
> > _
> > TO UNSUBSCRIBE: send a plain text/US ASCII email to
> > [EMAIL PROTECTED]
> > with unsubscribe witango-talk in the message body
> >
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body