cancel
Showing results for 
Search instead for 
Did you mean: 

Property with a multiple values at the same time

riadhazzouz
Confirmed Champ
Confirmed Champ

How can I create a property of a custom model equivalent to a java arrayList ?

3 REPLIES 3

hardik1512
Star Contributor
Star Contributor

By Setting

<multiple>true</multiple>

for that property in content model.

Adding a custom property | Alfresco Documentation 

Hi,
Thanks,
Do you have any idea about how to create a field for this kind of properties.
I mean a field that can give you multiple options and I can choose multiple values.(checkbox maybe ?)

I found an example of a multiSelectInput here is the code :

{
name : "alfresco/forms/controls/MultiSelectInput",
config : {
label : "Select Users",
name : "prop_config_users",
optionsConfig : {
queryAttribute : "shortName",
publishTopic : "ALF_GET_FORM_CONTROL_OPTIONS",
publishPayload : {
url : page.url.context
+ "/proxy/alfresco/api/groups/ALFRESCO_ADMINISTRATORS/children",
resultsProperty : "options",
itemsAttribute : "data",
labelAttribute : "displayName",
valueAttribute : "shortName"
}
}
}
},

but I didn't know how to change the url under publishPayload to make it show all users.