[Seaside] Re: TableReport and sortBlock
hilaire at drgeo.eu
Wed Jun 3 13:34:00 UTC 2015
Oops, my bad. I was defining the report in the render method, so the
sort preferences were reset at each refresh.
Le 03/06/2015 15:00, Hilaire a écrit :
> I have a hard time to use the sortBlock: option with TableRerport.
> Nothing happens when clicking on the column title.
> I am using like this:
> (table := reports add: WATableReport new)
> rows: self amounts;
> columns: (OrderedCollection new
> add: ((WAReportColumn selector: #amount title: 'Montant')
> sortBlock: [:d1 :d2 | d1 amount >= d2 amount]);
> Moreover, if I had a halt in the sortBlock, it looks like the sort block
> is never executed.
> Do I miss something?
More information about the seaside