cancel
Showing results for 
Search instead for 
Did you mean: 

Add items to constraint list property

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

I ask you one thing about a need for primary type from any end user in a system.

I created a custom template for the form of Alfresco Share which are metadata type for LIST elements preloaded from the xml template.

But ask me if you can allow the user end user to add elements in the list without requiring help from a technical figure that ties up the hands of the template file to xml.

It is possible? Or this is too difficult?

Thank a lot.
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
That is possible but not that simple.
For that you need to create one content in Alfresco where you will be maintaining the list of values.
In the content model that constrain will be custom constrain which reads that file and populate the set of values.
So , now whenever user wants to add new value to that list he just need to edit that file and add that value.
Looks difficult isn't it :?:

need
Champ in-the-making
Champ in-the-making
HI,

thanks for reply but i don't understand, what do you mean create the content in Alfresco? Can you give me some examples?

Thanks a lot.

mitpatoliya
Star Collaborator
Star Collaborator
create content means you can create some csv file upload it in the alfresco.
Then read the values from that file to populate the list in the property.
Whenever you want to add new value you just need to edit that file in the alfresco. 😎

mvidev
Champ in-the-making
Champ in-the-making
This functionality to dynamically update a list property's allowed valued would be extremely useful.
I looked at the referenced blog and have searched around but cannot find the syntax to reference a separate file.
Could an example model file be provided?

Thank you.