AnsweredAssumed Answered

Unable to get custom property value through Javascript

Question asked by stallapragada on Apr 15, 2009
Latest reply on Jun 23, 2009 by nikes
Hi

I am having a javascript to extract the custom properties of a document when it is being added to Alfresco. I have a requirement to auto folder this document in a folder that is dynamically created based on the custom property of this document. So, I defined a rule and am having a javascript executed wheneever a document belonging to this type is being added to Alfresco. I have the following code snippet in my javascript that is returning null due to which the folder creation process is failing.

var empId = document.properties["dc:eId"];

Whereas, when I try to get the name of the document, I am able to get it using the following code.

var docName = document.properties["name"];

What I am failing to understand is that I am able to set the custom property from "Add Content" wizard. I can see the value of the same after the document is added. Also, I am able to search the document based on the custom property. The only thing that is failing is the retrieval of this property value by the javascript.

Any clues?

-Thanks
Srikant
Principal Consultant
IntrospeQt Software India Pvt Ltd
http://www.introspeQt.com

Outcomes