06-12-2017 06:16 AM
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 update
node.properties["xxx:customDate"] = "2017-03-31T13:14:17";
node.save();
print(node.properties["xxx:customDate"]);
Output is:
2017-03-31T13:14:17
However, If I explore this node in node browser, property xxx:customDate, whose is type d:date, has got old value.
Have you any idea how update a custom date propery?
Thanks.
06-12-2017 08:32 AM
06-12-2017 09:41 AM
Explore our Alfresco products with the links below. Use labels to filter content by product module.