[Seaside] Added records not showing on Filtered view.
rbb at techgame.net
Fri Aug 13 05:23:23 CEST 2004
On Aug 12, 2004, at 7:51 PM, LK wrote:
> I filtered my PMLogsView to only show records where the #type =
> 'LOGS', by changing the Session method #initialze from:
> allRecords := self session logs
> to this:
> allRecords := (self session logs) select: [:i| i type = 'LOGS']
^ self session logs
> When a record is added to my 'logs' database, it does not show in the
> PMLogsView page unless I start a new session. ( Delete and modify
> work, though).
> I have tried moving the filter code from PMLogsView>>initialize to the
> session method #logs, thinking that the database access needs to be at
> the session level, in order to get updated.
It does not, but you are not updating anything in these methods.
> ^ (self db root at: 'logs') select: [:i | i type = 'LOGS']
This does return a Collection of the correct objects, right?
> But, that doesn't seem to make any difference. I'm obviously flaying
> around in the dark, here. Any care to lend my a light, ( candle,
> flashlight, foglight. etc :<).
Give me some more info, or email me directly and we can get this
figured out :)
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside