[Seaside] Help understanding WATableReport

radoslav hodnicak rh at 4096.sk
Wed Aug 25 18:41:16 CEST 2004


On Wed, 25 Aug 2004, LK wrote:

> Thanks for the step-by-step. My tableReport now works. One question on
> sorting. I have to convert date fields to Strings to get them to sort.
> Is there a way to reformat the Date, say to 'YYYYMMMDD' format?

Date today yyyymmdd

(you should really learn how to find such answers yourself. Is it that
hard to open browser on class Date and look what methods are there?)

but you don't have to convert dates to strings to have them sorted.
Notice in my last example that my data were numbers but the columns
sorted anyway. Anything that understands #<=  can be sorted. The
rest can be made sortable using sortBlock: when creating WAReportColumn

rado
-- 
gentleman, n. - a man who knows how to blog, but doesn't



More information about the Seaside mailing list