cancel
Showing results for 
Search instead for 
Did you mean: 

Multi select option

naveenkumar
Champ in-the-making
Champ in-the-making
For my application i need to create drop down list with multiselect option?? I created my own content model with a drop down list, is alfresco supporting multi select option??here is my model:


<constraint name="cm:social" type="LIST">
         <parameter name="allowedValues">
            <list>
                  <value>Geography</value>
     <value>history</value>
     <value>Economics</value>
     </list>
         </parameter>
      </constraint>

<property name="cm:Social">
               <title>Social</title>
               <type>d:text</type>
                <mandatory>true</mandatory>
                <constraints>
                  <constraint ref="cm:social"/>
               </constraints>
            </property>

If so please anyone tell me…

Thanks
Naveen
4 REPLIES 4

sdavis
Champ in-the-making
Champ in-the-making
Under your property definition add

<multiple>true</multiple>

It won't allow for a multi-selector directly from the drop-down, but does enable storage of multiple values one at a time.  Check out the resulting form to see out-of-the-box behavior.

I believe taking this the next step to render a multi-select display control takes some customization.

naveenkumar
Champ in-the-making
Champ in-the-making
Really cool david, its working this what i need..

Thanks
Naveen

mer
Champ in-the-making
Champ in-the-making
Hi all,

I´ve got a similar problem. I need to create two properties ,with multiple values, both at the same time. I don´t want the aplication to add both properties separately.

Do you know how to do this?

Thanks a lot!

sharifu
Confirmed Champ
Confirmed Champ
Can some one tell me how I can dynamically update the values in detail please, whether its a combo box or a multi select box

Is it possible to have something like this
http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=86