AnsweredAssumed Answered

Customize Package_item in Alfresco share workflow

Question asked by sradha on Oct 9, 2012
Hi,

I am using alfresco4.0.I want to dispaly the content aspect value  in package item section as description of content  is displaying in workflow.I have modified  objest_finder.js file for

return function ObjectFinder_fnRenderCellListItemName(elCell, oRecord, oColumn, oData)
         {
            var item = oRecord.getData(),
               description =  item.description ? $html(item.description) : scope.msg("label.none"),
            createdOn =item.created ? Alfresco.util.formatDate(Alfresco.util.fromISO8601(item.created)) : null,
               modifiedOn = item.modified ? Alfresco.util.formatDate(Alfresco.util.fromISO8601(item.modified)) : null,
               title = $html(item.name);
            if (scope.options.showLinkToTarget && scope.options.targetLinkTemplate !== null)
            {
               var link;
               if (YAHOO.lang.isFunction(scope.options.targetLinkTemplate))
               {
                  link = scope.options.targetLinkTemplate.call(scope, oRecord.getData());
               }
               else
               {
                  //Discard template, build link from scratch
                  var linkTemplate = (item.site) ? Alfresco.constants.URL_PAGECONTEXT + "site/{site}/document-details?nodeRef={nodeRef}" : Alfresco.constants.URL_PAGECONTEXT + "document-details?nodeRef={nodeRef}";
                  link = YAHOO.lang.substitute(linkTemplate,
                  {
                     nodeRef : item.nodeRef,
                     site : item.site
                  });
               }
               title = '<a href="' + link + '">' + $html(item.name) + '</a>';
            }
            var template = '<h3 class="name">' + title + '</h3>';
            template += '<div class="description">' + scope.msg("form.control.object-picker.description") + ': ' + description + '</div>';
            template += '<div class="viewmode-label">' + scope.msg("form.control.object-picker.modified-on") + ': ' + (modifiedOn ? modifiedOn : scope.msg("label.none")) + '</div>';
         template += '<div class="viewmode-label">' + scope.msg("form.control.object-picker.created-on") + ': ' + (createdOn ? createdOn : scope.msg("label.none")) + '</div>';
            elCell.innerHTML = template;
         };


But this value is not populating in Ui.Can anybody suggest how to do it?

Outcomes