<?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 date property in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39489#M16585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Please do not do any Lucene searches (Alfresco no longer uses Lucene and the search language support is not being improved anymore) - stick to Alfresco FTS and/or CMIS&lt;/LI&gt;&lt;LI&gt;You do not need to perform a search to find a node. The "search" root scope object has a simple findNode() operation which you can use with a NodeRef string value to lookup the node from the DB. You'd simply need to prefix your UUID with the workspace://SpacesStore/ fragment&lt;/LI&gt;&lt;LI&gt;Does your JavaScript code complete successfully? E.g. is there some code after that section that may fail or are there messages in the log about a potential failure? The fact that the NodeBrowser shows a different value indicates that the value may not actually have been updated on the DB, which typically is a result of a transaction failing to commit.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 12:32:14 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-06-12T12:32:14Z</dc:date>
    <item>
      <title>Update date property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39488#M16584</link>
      <description>Hello everybody,I have to update a custom date property from a node of my Alfresco installation. So, I run next javascript code:var node = search.luceneSearch('@sys\\:node-uuid:"abd3a8f7-66a5-4288-bf29-b9f31510cecb"');node = node[0]; //get node to updatenode.properties["xxx:customDate"] = "2017-03-3</description>
      <pubDate>Mon, 12 Jun 2017 10:16:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39488#M16584</guid>
      <dc:creator>sercama</dc:creator>
      <dc:date>2017-06-12T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update date property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39489#M16585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Please do not do any Lucene searches (Alfresco no longer uses Lucene and the search language support is not being improved anymore) - stick to Alfresco FTS and/or CMIS&lt;/LI&gt;&lt;LI&gt;You do not need to perform a search to find a node. The "search" root scope object has a simple findNode() operation which you can use with a NodeRef string value to lookup the node from the DB. You'd simply need to prefix your UUID with the workspace://SpacesStore/ fragment&lt;/LI&gt;&lt;LI&gt;Does your JavaScript code complete successfully? E.g. is there some code after that section that may fail or are there messages in the log about a potential failure? The fact that the NodeBrowser shows a different value indicates that the value may not actually have been updated on the DB, which typically is a result of a transaction failing to commit.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:32:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39489#M16585</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-12T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update date property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39490#M16586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="73554" __jive_macro_name="user" _jive_internal="true" data-id="73554" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/afaust" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your reply. I've debug my code and I've found the problem. I've had an error in a behaviour, javascript code was properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:41:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-date-property/m-p/39490#M16586</guid>
      <dc:creator>sercama</dc:creator>
      <dc:date>2017-06-12T13:41:25Z</dc:date>
    </item>
  </channel>
</rss>

