As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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 = alfresco_doc.name; var some_property = alfresco_doc.properties.some_property; … }
var url = '/alfresco/command/script/execute/workspace/SpacesStore/SCRIPT_ID/workspace/SpacesStore/' + documentID; YAHOO.util.Connect.asyncRequest('GET', url,{ success: function(o) { //the text I need to change is inside a span with id = documentID… document.getElementById(documentID).innerHTML= o.responseText; } });