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.
workspace://SpacesStore/1d5b8f4a-a2a7-11dc-8d74-6f45f39984e5
${companyhome.nodeByReference["workspace://SpacesStore/e661dccb-ecc0-11da-9974-63f65406985a"].id}
<div class="form-field"> <div class="viewmode-field"> <span class="viewmode-label">${field.label?html}:</span> <span class="viewmode-value" id="${fieldHtmlId}-value">${field.control.params.displayValue}</span> <input type="hidden" name="${field.name}" id="${fieldHtmlId}-hidden" /> </div> </div> <script type="text/javascript">//<![CDATA[ (function() { YAHOO.util.Event.onContentReady("${fieldHtmlId}-hidden", function () { var element = YAHOO.util.Dom.get("${fieldHtmlId}-hidden"); element.value = ""; // define success handler var successHandler = function PreselectCategory_successHandler(response) { //your code… element.value = response.json.data.name; }; // define failure handler var failureHandler = function PreselectCategory_failureHandler(response) { //your code… }; var url = Alfresco.constants.PROXY_URI + "your repo webscript url"); // call the webscript var config = { method: "GET", url: url, successCallback: { fn: successHandler, scope: this }, failureCallback: { fn: failureHandler, scope: this } }; Alfresco.util.Ajax.request(config); }, this); })(); //]]></script>
url = Alfresco.constants.PROXY_URI + 'slingshot/doclib/categorynode/node/workspace/SpacesStore/28d678b8-966c-4328-b11c-3a8157de87b4'