[Seaside] Iterating through list - callback

recursive68 at gmail.com recursive68 at gmail.com
Sun May 30 21:59:38 UTC 2010


I'm trying to iterate through a resultset from a MySQL query and although
it's displaying the users as required when I click on the anchor it always
deletes the last user in the list rather than the one selected:

rs := slotquery rset.
[rs next]
user:= rs valueNamed: 'name'.
html text: user.
html anchor callback: [self deleteUser:user]; with:' Delete'.
html break.

It seems the anchor  callback always uses the last assignment to user, where
am I going wrong ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100530/0767c646/attachment.htm

More information about the seaside mailing list