cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new GROUP properties with multiple values

lyagueca
Champ in-the-making
Champ in-the-making
Hi,

I want to add new Group Properties to the documents, with multiple values.
What do I need to do? Is the following example, "address",  possible?

        …<property name="my:grupPropertiesAddress">      <title>Properties Group Multivalue</title>      <properties>            <property name="my:propStreet">                   <type>d:text</type>            </property>                  <property name="my:propNumber">              <type>d:int</type>            </property>                              <property name="my:propZipCode">              <type>d:int</type>            </property>                        </properties>      <multiple>true</multiple></property>                           …‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Thx in advance !
5 REPLIES 5

davidc
Star Contributor
Star Contributor
That's not possible.

Alternatives are:
1) Define an aspect containing the address properties and attach to any existing node (not too good for supporting multiples)
2) Define a type containing the address properties and create child nodes (good for supporting multiples)

lyagueca
Champ in-the-making
Champ in-the-making
Hi David,

I don't know how to create child nodes. I tried to insert this code in my exampleModel.xml, but this provoces an error when I start alfresco.

exampleModel.xml :
…<types>      <type name="my:address">         <title>My type Address</title>         <properties>                     <property name="my:propStreet">                      <type>d:text</type>               </property>                     <property name="my:propNumber">                 <type>d:int</type>               </property>                                 <property name="my:propZipCode">                 <type>d:int</type>               </property>         </properties>       </type> <!– Definition of new Content Type: SOP –>      <type name="my:sop">         <title>My new sop</title>         <parent>cm:content</parent>         <properties>            <property name="my:authorisedBy">               <type>d:text</type>            </property>            <property name="my:childAddress">               <type>my:address</type>               <multiple>true</multiple>            </property>                              </properties>       </type></types>…‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Could you, please, provide me with more details about how to achieve the second alternative?
Define a type containing the address properties and create child nodes
Very grateful for your feedback!
Luis

davidc
Star Contributor
Star Contributor

lyagueca
Champ in-the-making
Champ in-the-making
Hi,

I have added the association childAddress:
[img]http://thumbq.com/store/597-childaddre.jpg[/img]

But, is the following example, possible?:
[img]http://thumbq.com/store/614-iwantthisc.jpg[/img]
Very grateful for your feedback!
Luis

lyagueca
Champ in-the-making
Champ in-the-making
Hi,
I have been investigating, but not the solution.  :?
Somebody knows how I can implement the following example?
[img]http://thumbq.com/store/614-iwantthisc.jpg[/img]
Thx in advance !