AnsweredAssumed Answered

Javascript function to get alfresco document by noderef id?

Question asked by benvercammen on Aug 21, 2008
Latest reply on Oct 26, 2012 by abarisone
Hi, I'm beginning to get the feeling this may not be the best forum to post questions about writing custom views in FTL's, but I couldn't find one that's more related. So if this question is in the wrong forum, please let me know!

Now for my question… I would like to know if it's somehow possible to get a handle for an "alfresco document" within a javascript. What I'm looking for is some kind of javascript function that I can call with the nodeRef ID of the document I need, and then get the document object returned to me…

To clarify:

function doSomethingWithADocumentInsideACustomViewFTL(DOCUMENT_NODEREF_ID) {
    var alfresco_doc = SomeKindOf.magical_function.which_returns_the_document(“/alfresco/navigate/showDocDetails/workspace/SpacesStore/DOCUMENT_NODEREF_ID”);
    var name =;
    var some_property =;

Am I looking for something non-existant or going at this the wrong way? Or am I actually making sense and can someone give me that "magical_function"?