05-26-2014 07:31 PM
05-26-2014 11:28 PM
<mandatory enforced="false">true</mandatory>
element to your property definition system.integrity.enabled=false
in your alfresco-global.properties05-27-2014 01:32 AM
05-27-2014 02:01 AM
05-27-2014 09:44 AM
05-27-2014 11:34 AM
05-27-2014 02:47 PM
05-28-2014 03:09 AM
onActionChangeType: function dlA_onActionChangeType(record)
{
var jsNode = record.jsNode,
currentType = jsNode.type,
displayName = record.displayName,
actionUrl = Alfresco.constants.PROXY_URI + $combine("slingshot/doclib/type/node", jsNode.nodeRef.uri);
var doSetupFormsValidation = function dlA_oACT_doSetupFormsValidation(p_form)
{
// Validation
p_form.addValidation(this.id + "-changeType-type", function fnValidateType(field, args, event, form, silent, message)
{
return field.options[field.selectedIndex].value !== "-";
}, null, "change", null, { validationType: "mandatory" });
};
// Always create a new instance
this.modules.changeType = new Alfresco.module.SimpleDialog(this.id + "-changeType").setOptions(
{
width: "30em",
templateUrl: Alfresco.constants.URL_SERVICECONTEXT + "modules/documentlibrary/change-type?currentType=" + encodeURIComponent(currentType),
actionUrl: actionUrl,
doSetupFormsValidation:
{
fn: doSetupFormsValidation,
scope: this
},
firstFocus: this.id + "-changeType-type",
onSuccess:
{
fn: function dlA_onActionChangeType_success(response)
{
YAHOO.Bubbling.fire("metadataRefresh",
{
highlightFile: displayName
});
Alfresco.util.PopupManager.displayMessage(
{
text: this.msg("message.change-type.success", displayName)
});
},
scope: this
},
onFailure:
{
fn: function dlA_onActionChangeType_failure(response)
{
Alfresco.util.PopupManager.displayMessage(
{
text: this.msg("message.change-type.failure", displayName)
});
},
scope: this
}
});
this.modules.changeType.show();
},
share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/modules/documentlibrary/change-type.get.desc.xml
/share/components/documentlibraryactions.js(actions-min.js) and alfresco/site-webscripts/org/alfresco/modules/documentlibrary/change-type.get.js and alfresco/site-webscripts/org/alfresco/modules/documentlibrary/change-type.get.html.ftl
05-30-2014 02:36 AM
05-30-2014 02:54 AM
onActionChangeType: function dlA_onActionChangeType(record)
method ,maybe just need to set actionUrl to your custom webscript url.
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.