cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new properties and modify features of this properties

tiofelix
Champ in-the-making
Champ in-the-making
When users finalize a new document, they can add same properties like author,… i have added new properties, but now i have problems with the features of this properties. I want some of that properties to be obligatories, how can i do?? 
 
     And another question is how to define a property that provide automatically a code number, i.e:
             -the first document UserJohn create is: 1
             -the second one is: 2
             -the first one of UserAnn is:3
             -….

     Thanks.
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
To make a property mandatory you add


<mandatory>true</mandatory>

to the property definition in your model.

I don't believe we have support for auto-assigning incrementing numbers.

tiofelix
Champ in-the-making
Champ in-the-making
Thanks a lot for the information!! Thats what i needed. What a pity nothing for the incrementing number…

tiofelix
Champ in-the-making
Champ in-the-making
I have no idea how to define a property like this one, because the other properties were defined in my model.xml, but the new one i want i think no.. how can i do?

tiofelix
Champ in-the-making
Champ in-the-making
I've been looking into sql database and i have found the "id" from table "child associations". This numbers are not a sequence, because if you remove a document from alfresco the number increment and appear an achivedItem.. is there some information about this?? Thanks.