<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre>Hi Sergio,</pre><pre>I think you add the:</pre><pre><span class="Apple-style-span" style="font-family: Times; white-space: normal; "><pre>reference: self descriptionCodice  asContainer; </pre></span><div>to display the codice into the select box,</div><div><br></div><div>but save the object into #siteType.</div><div><br></div><div>Ciao,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Dario </div></pre><pre><br></pre><pre>^(MASingleOptionDescription new)
                reference: self descriptionCodice  asContainer; 
                autoAccessor: 'linkTipoDeposito';
                options:  [self DataBase asArray] asDynamicObject ;                                        
                label: 'Tipologia deposito';
                beSorted;
                beRequired;
                priority: 70;
                yourself</pre><pre><br></pre><pre>|<span class="Apple-tab-span" style="white-space:pre">        </span>i am trying to figure out how to create a form with magritte using</pre><pre>|<span class="Apple-tab-span" style="white-space:pre">        </span>another object to populate the select box, but am having a little
|<span class="Apple-tab-span" style="white-space:pre">        </span>problem..
|
|<span class="Apple-tab-span" style="white-space:pre">        </span>my description looks like:
|
|<span class="Apple-tab-span" style="white-space:pre">        </span>descriptionSiteType
|    ^ MASingleOptionDescription new
|        accessor: #siteType;
|        label: 'Site Type';
|        priority: 15;
|         options:  (SiteType repository do: [:each | each name1]);
|        yourself
|
|<span class="Apple-tab-span" style="white-space:pre">        </span>which populates it with the name of the class (not the instance name),
|<span class="Apple-tab-span" style="white-space:pre">        </span>but it appears to save the object okay..
|
|<span class="Apple-tab-span" style="white-space:pre">        </span>what i would like to do is have it:
|
| save the correct object, but have the name1 show up as the selection text...
|
|any ideas? thanks!
</pre><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; "><br></span></font></div></span></body></html>