cancel
Showing results for 
Search instead for 
Did you mean: 

Multi select list option in content model

sanketgosavi
Champ in-the-making
Champ in-the-making
Hi,

In my application I have given multi-select list option.
I've created my own content model in which I've specified list but here how can I allow multi-select
option in content model.


when I pass the multiselect values (concatenated by comma in single string )in webscript call I get
following exception :

"exception" : "org.alfresco.repo.node.integrity.IntegrityException - 10250181 Found 1 integrity violations:\nInvalid property value:


So here what changes I've to make in content model?


Thanks
Sanket
3 REPLIES 3

govinda
Champ in-the-making
Champ in-the-making
While applying constraint to metadata , set the multiple option to true in your metadata . This will allow you to select multiple values in list.
<multiple> true </multiple>

sanketgosavi
Champ in-the-making
Champ in-the-making
Hi Govinda,

It's not working.

As I am making a new concatenated String by selecting multiple values.
So it is becoming a new value than that of specified list values.



Thanks
Sanket

yogeshpj
Star Contributor
Star Contributor
You don't need to declare property as multiple true.You can store comma separated string value in one single d:text type property.