<?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: How to store multi valued attribute in web services in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6017#M1242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has been fixed now.&amp;nbsp; The NamedValue class now has two additional properties, isMultiValue and values.&amp;nbsp; If you want to set a multi-valued property then set the isMultiValue property to true (it will be false by default) and instead of setting the value property, instead set the values property with a string array of values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 14:03:57 GMT</pubDate>
    <dc:creator>rwetherall</dc:creator>
    <dc:date>2006-06-22T14:03:57Z</dc:date>
    <item>
      <title>How to store multi valued attribute in web services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6015#M1240</link>
      <description>How to store the multi valued properties using the namedValue class</description>
      <pubDate>Wed, 24 May 2006 05:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6015#M1240</guid>
      <dc:creator>pitti</dc:creator>
      <dc:date>2006-05-24T05:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multi valued attribute in web services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6016#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't experimented with this yet but I don't think there is way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've raised it as a bug and we'll try to get it resolved in 1.3.&amp;nbsp; See &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/jira/browse/AR-621" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/jira/browse/AR-621&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 09:21:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6016#M1241</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2006-05-31T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multi valued attribute in web services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6017#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has been fixed now.&amp;nbsp; The NamedValue class now has two additional properties, isMultiValue and values.&amp;nbsp; If you want to set a multi-valued property then set the isMultiValue property to true (it will be false by default) and instead of setting the value property, instead set the values property with a string array of values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 14:03:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6017#M1242</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2006-06-22T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to store multi valued attribute in web services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6018#M1243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tested this code in Alfresco Web Service Client 1.3 with Alfresco 1.3 it doesn't work. In Web Service 1.2 with Alfresco 1.2 works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;NamedValue[] properties = new NamedValue[]{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "textProp"), "some text"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "intProp"), "12"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "longProp"), "1234567890"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "floatProp"), "12.345"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "doubleProp"), "12.345"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "dateProp"), "2005-09-16T00:00:00.000+00:00"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "datetimeProp"), "2005-09-16T17:01:03.456+01:00"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "booleanProp"), "false"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "qnameProp"), "{&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0}testProperties" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0}testProperties&lt;/A&gt;"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "noderefProp"), "workspace://SpacesStore/123123123"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Utils.createNamedValue(Constants.createQNameString("&lt;A href="http://www.alfresco.org/model/webservicetestmodel/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/webservicetestmodel/1.0&lt;/A&gt;", "textMultiProp"), new String[] {"firstValue", "secondValue", "thirdValue"}),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;CMLUpdate cmlUpdate = new CMLUpdate(properties, new Predicate(new Reference[]{reference}, null, null), null);&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setUpdate(new CMLUpdate[]{cmlUpdate});&lt;BR /&gt;repositoryService.update(cml);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Alfresco 1.3 Web Client not exists the NamedValue(String, String) constructor, but there is a NamedValue(String, boolean, String, String[]) constructor and the boolean parameter tell me if i'm going to use the third or the fourth parameter….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it not better two methods?, NamedValue(String, String) and NamedValue(String, String[])? I cant see the reason for that two methods…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me, please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, fbertos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 12:45:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-store-multi-valued-attribute-in-web-services/m-p/6018#M1243</guid>
      <dc:creator>fbertos</dc:creator>
      <dc:date>2006-06-28T12:45:28Z</dc:date>
    </item>
  </channel>
</rss>

