03-23-2014 05:12 PM
_createNavigationControls: function ObjectFinder__createNavigationControls()
{
var me = this;
if (this._inAuthorityMode())
{
// only show the search box for authority mode
Dom.setStyle(this.pickerId + "-folderUpContainer", "display", "none");
Dom.setStyle(this.pickerId + "-navigatorContainer", "display", "none");
Dom.setStyle(this.pickerId + "-searchContainer", "display", "block");
…
03-24-2014 12:25 PM
03-24-2014 02:17 PM
03-25-2014 04:22 AM
YAHOO.extend(Alfresco.CustomObjectFinder, Alfresco.ObjectFinder, {
// Add here the functions you want to override
}
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<js src="path/to/my/dependency/custom-object-finder.js" />
</dependencies>
</config>
03-26-2014 02:38 AM
(function() {
Alfresco.RTObjectSearcher = function Alfresco_RTObjectSearcher(htmlId,
currentValueHtmlId) {
Alfresco.RTObjectSearcher.superclass.constructor.call(this,
"Alfresco.RTObjectSearcher", htmlId, [ "button", "menu",
"container", "resize", "datasource", "datatable" ]);
this.currentValueHtmlId = currentValueHtmlId;
this.eventGroup = htmlId;
YAHOO.Bubbling
.on("renderCurrentValue", this.onRenderCurrentValue, this);
YAHOO.Bubbling.on("selectedItemAdded", this.onSelectedItemAdded, this);
YAHOO.Bubbling.on("selectedItemRemoved", this.onSelectedItemRemoved,
this);
YAHOO.Bubbling.on("parentChanged", this.onParentChanged, this);
YAHOO.Bubbling.on("parentDetails", this.onParentDetails, this);
YAHOO.Bubbling.on("formContainerDestroyed",
this.onFormContainerDestroyed, this);
YAHOO.Bubbling.on("removeListItem", this.onRemoveListItem, this);
// Initialise prototype properties
this.pickerId = htmlId + "-picker";
this.columns = [];
this.selectedItems = {};
this.isReady = false;
this.options.objectRenderer = new Alfresco.ObjectRenderer(this);
return this;
};
YAHOO.extend(Alfresco.RTObjectSearcher, Alfresco.ObjectFinder, {});
})();
var ${picker} = new Alfresco.RTObjectSearcher("${controlId}", "${fieldHtmlId}").setOptions(
…
<#include "common/searcher.inc.ftl" />
<@script type="text/javascript" src="${url.context}/res/components/redtape/object-searcher/object-searcher.js"/>
in searcher.inc.ftl03-26-2014 04:36 AM
Alfresco.RTObjectSearcher = function Alfresco_RTObjectSearcher(htmlId, currentValueHtmlId) {
Alfresco.RTObjectSearcher.superclass.constructor.call(this, htmlId, currentValueHtmlId);
return this;
};
<config>
<forms>
<dependencies>
<js src="path/to/my/dependency/custom-object-finder.js" />
</dependencies>
</forms>
</config>
03-27-2014 01:52 AM
05-31-2014 01:59 PM
06-02-2014 11:18 PM
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.