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

Reply via email to