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.
<action id="documents-document" type="javascript" label="actions.documents-document" icon="documents-document"> <param name="function">onActionDocument</param> <permissions> <permission allow="true">Write</permission> </permissions> </action>
(function() { YAHOO.Bubbling.fire("registerAction", { actionName: "onActionDocument", fn: function JSC_onActionDocument(file) { alert(file.nodeRef) alert(file.displayName) } } });
var a = file
function getNode() { var queryString = page.url.getQueryString(); var nodeRef="NOT FOUND"; var stringArray = queryString.split("&"); for(var t=0;t<stringArray.length;t++) { if (stringArray[t].indexOf('nodeRef=')>-1){ nodeRef = stringArray[t].split('=')[1]; break; } } if (nodeRef !== "NOT FOUND") { nodeRef = nodeRef.replace("://","/"); return nodeRef; } else { throw new Error("Node Reference is not found."); } }