<?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: update properties of existing contents in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307984#M261114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please any one can help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 08:00:12 GMT</pubDate>
    <dc:creator>sulyman_korj</dc:creator>
    <dc:date>2014-06-08T08:00:12Z</dc:date>
    <item>
      <title>update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307981#M261111</link>
      <description>Dears,can you help me I need to find solution to update properties value for existing contents.for example:I have 10 contents on one folder I need to set Description properties value to (Any Words) in alfresco we can set rule when I add any content to set properties value but I need to do like this</description>
      <pubDate>Sat, 07 Jun 2014 14:20:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307981#M261111</guid>
      <dc:creator>sulyman_korj</dc:creator>
      <dc:date>2014-06-07T14:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307982#M261112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi sulyman.korj:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Modifying and Creating API should help.&amp;nbsp; See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/references/API-JS-ModifyCreate.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/references/API-JS-ModifyCreate.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example they give on that page is poorly formatted, but shows exactly what you want to do.&amp;nbsp; Here it is formatted better:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// change the name of this document &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties.name = "Backup of " + document.properties.name; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// add a new property string &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties["cm:locale"] = mylocalenode; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// save the property modifications &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the Javascript Console Add-on (&lt;/SPAN&gt;&lt;A href="http://addons.alfresco.com/addons/javascript-console" rel="nofollow noopener noreferrer"&gt;http://addons.alfresco.com/addons/javascript-console&lt;/A&gt;&lt;SPAN&gt;) is extremely useful as you're working on a script like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jun 2014 15:27:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307982#M261112</guid>
      <dc:creator>icrew</dc:creator>
      <dc:date>2014-06-07T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307983#M261113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply but my problem I need the idea how I can implementing this where I can put the script for example if I need to select some files and update properties values for them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to find one example after this I can modified as I need because I have custom metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jun 2014 17:13:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307983#M261113</guid>
      <dc:creator>sulyman_korj</dc:creator>
      <dc:date>2014-06-07T17:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307984#M261114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please any one can help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 08:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307984#M261114</guid>
      <dc:creator>sulyman_korj</dc:creator>
      <dc:date>2014-06-08T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307985#M261115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are various different ways you can do this - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Write a webscript and pass the parent folder node to it,Iterate over its children and set the required properties on them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Another way is to write a java script based action, run it on a parent folder through Run Action. Using the parent node, iterate over its children and set the required properties on them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is what you are looking forward to. Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 09:28:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307985#M261115</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-06-08T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307986#M261116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply can you give me sample or give me the details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 10:24:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307986#M261116</guid>
      <dc:creator>sulyman_korj</dc:creator>
      <dc:date>2014-06-08T10:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307987#M261117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Iterate_Nodes" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Iterate_Nodes&lt;/A&gt;&lt;SPAN&gt; have some good examples of the sorts of things you can do with the JavaScript API.&amp;nbsp; Also check out the samples in COMPANY_HOME/Data Dictionary/Scripts inside your alfresco instance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 21:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307987#M261117</guid>
      <dc:creator>icrew</dc:creator>
      <dc:date>2014-06-09T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: update properties of existing contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307988#M261118</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;SPAN&gt;Please find the below sample code to update the description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: It updates the description for both the folders and the files as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i=0; i&amp;lt;document.children.length;i++) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var currentFolder = document.children&lt;/SPAN&gt;&lt;EM&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentFolder.properties["cm:description"] ="Description updated via javascript";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentFolder.save();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/javascript&amp;gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-properties-of-existing-contents/m-p/307988#M261118</guid>
      <dc:creator>muralidharand</dc:creator>
      <dc:date>2014-06-10T07:04:00Z</dc:date>
    </item>
  </channel>
</rss>

