[Zope] sorting a table

complaw@hal-pc.org complaw@hal-pc.org
Thu, 3 Jan 2002 00:13:46 GMT


Normally what I do is have the table header/title include a hyperlink to 
another Z SQL Method (one that sorts the way you want it to).  When the user 
clicks on the hyperlink, they are simply calling another Z SQL Method that is 
set to deliver the HTML table in the desired order.

HTH,

Ron


> I have a DTML method that calls a Z SQL Method and places the results into an 
> HTML table. What I would like to do with the table is make the column headers 
> sort the results in ascending and descending order when they click on the 
> link. I haven't really seen any Howtos or anything in the Zope book that 
> describes or explains what I'm trying to do. If someone could help me with 
> this I'd appreciate it.
> 
> Thanks,
> Lucas Vogel
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>