Property with a multiple values at the same time

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
riadhazzouz
Active Member

Property with a multiple values at the same time

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

3 Replies
hardik1512
Established Member II

Re: Property with a multiple values at the same time

By Setting

<multiple>true</multiple>

for that property in content model.

Adding a custom property | Alfresco Documentation 

riadhazzouz
Active Member

Re: Property with a multiple values at the same time

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 ?)

riadhazzouz
Active Member

Re: Property with a multiple values at the same time

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.