<?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 How set a multiple property with the javascript api in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24849#M10772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have a little script for add a aspect and set some property:&lt;BR /&gt;============================================================================&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// add the aspect to this document if it needs it&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if (document.hasAspect("conta:contatore")) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;logger.log("Document already as aspect conta:contatore");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;logger.log("Adding conta:contatore aspect");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;document.addAspect("conta:contatore");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//add a new property string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.properties["conta:soggetto_produttore"] = "";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.properties["conta:data_ultima_registrazione"] = new Date();//datetime&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.properties["conta:tipo"] = "";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.properties["conta:amministrazione"] = "";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.properties["conta:destinatari"] = "";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;document.properties["conta:registrazioni"] = ""; //this is a multiple property how can i set with multiple value?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// save the property modifications&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;document.save();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;==================================================================================&lt;/P&gt;&lt;P&gt;i&amp;nbsp; cannot find a example for the correct way to set a property with multiple value , or what is the defult separator of alfresco if i insert a single string with many value.&lt;/P&gt;&lt;P&gt;Can someone show the way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 13:53:27 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2017-08-31T13:53:27Z</dc:date>
    <item>
      <title>How set a multiple property with the javascript api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24849#M10772</link>
      <description>Hi i have a little script for add a aspect and set some property:============================================================================// add the aspect to this document if it needs itif (document.hasAspect("conta:contatore")) {&amp;nbsp;&amp;nbsp; &amp;nbsp;logger.log("Document already as aspect conta:contatore");} els</description>
      <pubDate>Thu, 31 Aug 2017 13:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24849#M10772</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-08-31T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How set a multiple property with the javascript api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24850#M10773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logical data structure to use for multiple values in JavaScript would be an array. The ScriptNode API for properties supports arrays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 19:08:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24850#M10773</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-31T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How set a multiple property with the javascript api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24851#M10774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Faust is right alfresco accepted the array for example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;document.properties["conta:registrazioni"] = ["A","B","C"];&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 07:27:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-set-a-multiple-property-with-the-javascript-api/m-p/24851#M10774</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-09-01T07:27:16Z</dc:date>
    </item>
  </channel>
</rss>

