<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multi-valued default in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multi-valued-default/m-p/298865#M251995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi lercherl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of the box, no I don't think there's an easy way to this.&amp;nbsp; While Alfresco's modelSchema.xsd means that your configuration is valid and would be parseable as a valid model, it looks like Alfresco's Java representation of a Property expects to receive a single String only. So just by content modelling, I don't think so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's an alternative option, using a simple Behaviour, where you could programmatically set the color property value of newly created nodes of this type to red and blue (obviously be sure to only set the values if the property is null) - &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/references/dev-extension-points-behaviors.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/references/dev-extension-points-behaviors.html&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2016 15:55:38 GMT</pubDate>
    <dc:creator>steven_okennedy</dc:creator>
    <dc:date>2016-05-30T15:55:38Z</dc:date>
    <item>
      <title>Multi-valued default</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-valued-default/m-p/298864#M251994</link>
      <description>In my model (generated by Model Manager), I have a multi-valued custom property with a "list of values" constraint. This works as expected:&amp;lt;property name="mymodel:color"&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Color&amp;lt;/title&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;multi</description>
      <pubDate>Mon, 30 May 2016 14:30:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-valued-default/m-p/298864#M251994</guid>
      <dc:creator>lercherl</dc:creator>
      <dc:date>2016-05-30T14:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-valued default</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-valued-default/m-p/298865#M251995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi lercherl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of the box, no I don't think there's an easy way to this.&amp;nbsp; While Alfresco's modelSchema.xsd means that your configuration is valid and would be parseable as a valid model, it looks like Alfresco's Java representation of a Property expects to receive a single String only. So just by content modelling, I don't think so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's an alternative option, using a simple Behaviour, where you could programmatically set the color property value of newly created nodes of this type to red and blue (obviously be sure to only set the values if the property is null) - &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/references/dev-extension-points-behaviors.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/references/dev-extension-points-behaviors.html&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 15:55:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-valued-default/m-p/298865#M251995</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-05-30T15:55:38Z</dc:date>
    </item>
  </channel>
</rss>

