07-01-2010 07:27 AM
07-24-2010 05:23 AM
07-27-2010 10:43 AM
if (record.custom && record.custom.isWorkingCopy)
{
/**
* Working Copy
*/
desc += '<div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.editing-started.on") + '</em> ' + Alfresco.util.formatDate(record.modifiedOn) + '</span>';
desc += '<span class="item"><em>' + scope.msg("details.editing-started.by") + '</em> <a href="' + Alfresco.DocumentList.generateUserProfileUrl(record.modifiedByUser) + '">' + $html(record.modifiedBy) + '</a></span>';
desc += '<span class="item"><em>' + scope.msg("details.size") + '</em> ' + Alfresco.util.formatFileSize(record.size) + '</span>';
desc += '</div><div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.description") + '</em> ' + $links($html(description)) + '</span>';
desc += '</div>';
}
else
{
/**
* Non-Working Copy
*/
desc += '<div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.modified.on") + '</em> ' + Alfresco.util.formatDate(record.modifiedOn) + '</span>';
desc += '<span class="item"><em>' + scope.msg("details.modified.by") + '</em> <a href="' + Alfresco.DocumentList.generateUserProfileUrl(record.modifiedByUser) + '">' + $html(record.modifiedBy) + '</a></span>';
desc += '<span class="item"><em>' + scope.msg("details.version") + '</em> ' + record.version + '</span>';
desc += '<span class="item"><em>' + scope.msg("details.size") + '</em> ' + Alfresco.util.formatFileSize(record.size) + '</span>';
desc += '</div><div class="detail">';
desc += '<span class="item"><em>' + scope.msg("details.description") + '</em> ' + $links($html(description)) + '</span>';
desc += '</div>';
record.properties["MyCustomProperty"]
08-03-2010 04:49 AM
<#if node.hasAspect("my:customAspect")>
"aspectname": "my:customAspect",
"myField": "${node.properties["{http://namespaceofAscpect}myField"]}",
</#if>
this.widgets.dataSource.responseSchema =
{
resultsList: "items",
fields:
[
"nodeRef", "nodeType", "type", "isFolder", "isLink", "mimetype", "fileName", "displayName", "status", "title", "description",
"createdOn", "createdBy", "createdByUser", "modifiedOn", "modifiedBy", "modifiedByUser", "lockedBy", "lockedByUser",
"version", "size", "contentUrl", "actionSet", "tags", "aspectname", "myField", "categories", "activeWorkflows",
"isFavourite", "location", "permissions", "custom", "actionLabels", "onlineEditUrl"
],
metaFields:
{
paginationRecordOffset: "startIndex",
totalRecords: "totalRecords"
}
};
/**
* Simple View
**/
desc += '<div class="detail"><span class="item-simple"><em>' + scope.msg("details.modified.on") + '</em> ' + Alfresco.util.formatDate(record.modifiedOn, "dd mmmm yyyy") + '</span>';
desc += '<span class="item-simple"><em>' + scope.msg("details.by") + '</em> <a href="' + Alfresco.DocumentList.generateUserProfileUrl(record.modifiedByUser) + '">' + $html(record.modifiedBy) + '</a></span></div>';
desc += '<div class="detail">';
if (record.aspectname == "my:customAspect"){
desc += '<span class="item-simple"><em>' + scope.msg("details.myField") + '</em> ' + record.myField + '</span>';
desc += '</div>'
}
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.