[Seaside] cannot understand #canSort error using WATableReport
s002 at landr.net
Sun Aug 22 18:00:43 CEST 2004
Avi Bryant wrote:
> On Aug 21, 2004, at 6:07 PM, radoslav hodnicak wrote:
>> On Sat, 21 Aug 2004, LK wrote:
>>> I've created a PMLogsReport as a subclass of WATableReport and
>>> initialized it with:
>>> " logs returns a collection of PMLogItem objects from a GOODS
>>> The #columns are a list of the PMLogItem variables."
>>> super initialize.
>>> rows _ (self session logs).
>>> columns _ #(type entryDate startTime entryText endTime).
>>> When I attempt to use it, I get a MessageNotUnderstood error: on
>>> canSort. How should I fix that.
>> For example you could actually try to understand how WATableReport is
>> implemented if you want to subclass it - hint, columns is supposed to
>> be a
>> collection of WAReportColums
> Yes, although chances are you don't actually need to subclass it -
> look for references to WATableReport in the system (like in
> WAMemoryUse) to see how it's supposed to be used.
Thanks for the hints. I didn't realize that I didn't have to subclass
it. I was making erroneous assumptions, based on my success with
WAGridDialog. Now, that you've shown me a working example, I know that
it does. I have a much better chance of understanding it enough to use.
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside