Jon,

Jon Whitehouse wrote on 10.02.2009 22:11:
All,
 
I have my developer ID and am starting to learn how to customize spectrum by reading the Customization Guide.  I have created my new attributes in model editor, but now I am curious if I wanted to add a 'drop down' menu to the editable field.
very simple: define the attribute as of type Enumerated (or integer) and fill in the enumerated values via MTE.
For example in OneClick in the Component Details -> Information tab  under General Information
 
I added a field called "Production Status" and I can "set" it to whatever I want.. which is great, but I really only want to be able to select from 4 choices from a pulldown menu (kind of like how you can select yes or no for "in Hibernation".
 
"Production"
"QA"
"Development"
"Sandbox"
 
How would I do that?
 
would the xml be something like
 
<param name="Production">com.aprisma.spectrum.app.util.render.Production</param
not quite, you would use the EnumeratedAttrRenderer:

      <column><name>your name</name>
        <content>
          <attribute>your attribute id</attribute>
          <renderer>
            <param name="attrID">your attribute id</param>
            com.aprisma.spectrum.app.util.render.EnumeratedAttrRenderer
          </renderer>
        </content>
        <editable/>
      </column>

Thomas
-- 
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss

begin:vcard
fn;quoted-printable:Thomas Kl=C3=B6ber
n;quoted-printable:Kl=C3=B6ber;Thomas
org:ICS GmbH
adr;quoted-printable:;;Leibnizpark 1;R=C3=B6srath;NRW;51503;Germany
email;internet:[email protected]
title:Dipl-Inform
tel;work:++49-2205-895558
tel;fax:++49-2205-895625
note:VoIP: 032221318672
x-mozilla-html:TRUE
url:www.ics.de
version:2.1
end:vcard

Reply via email to