04-18-2013 08:27 AM
workspace://SpacesStore/1d5b8f4a-a2a7-11dc-8d74-6f45f39984e5
${companyhome.nodeByReference["workspace://SpacesStore/e661dccb-ecc0-11da-9974-63f65406985a"].id}
04-18-2013 10:12 AM
<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>
04-18-2013 03:30 PM
url = Alfresco.constants.PROXY_URI + 'slingshot/doclib/categorynode/node/workspace/SpacesStore/28d678b8-966c-4328-b11c-3a8157de87b4'
04-24-2013 07:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.