<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>Oh cool. Thanks Ramon now I change a bunch of code tonight ;) I always wondered how to do that lol.<br><br>Gracias :)<br><br>RS via G1<br><br>> Date: Wed, 27 Oct 2010 10:49:47 -0700<br>> From: ramon.leon@allresnet.com<br>> To: seaside@lists.squeakfoundation.org<br>> Subject: Re: [Seaside] Problem smalltalk code<br>> <br>> Rather than adding to the list like this and passing around strings...<br>> <br>> html select<br>> list: ((user organizations collect: [:org | org oName ]) addFirst: <br>> '-- Select an organization --'; yourself);<br>> on: #selected of: self;<br>> <br>> Just do this to accomplish the same thing, and you don't really want to <br>> just get org names either, you want the org object, so fix the labels <br>> like this...<br>> <br>> html select<br>> beOptional;<br>> optionLabel: '-- Select an organization --';<br>> list: user organizations;<br>> labels: [:org | org oName];<br>> on: #selected of: self;<br>> <br>> Now when the user makes a selects, #selected is set to the correct org <br>> object, not just its name.<br>> <br>> -- <br>> Ramon Leon<br>> http://onsmalltalk.com<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            </body>
</html>