AnsweredAssumed Answered

open "view details" of document in new tab at workflow form alfresco share

Question asked by alf_developer09876 on Feb 22, 2017
Latest reply on Mar 20, 2017 by alf_developer09876

open "view details" page in new tab at alfresco workflow accept/reject page but  ** also to retain focus on the current page (approval/rejection) page**
with target="_blank" focus on current page is getting lost
  **overriding object-finder.js here**

 

   

 

     function ObjectFinder_fnRenderCellListItemName(elCell, oRecord, oColumn, oData)
                 {
                  if (scope.options.showLinkToTarget && scope.options.targetLinkTemplate !== null)
                    {
                     if(item.site=="######xxxxxxxxxxany site****"){
                    title = '<a href="' + link + '"target="_blank">' + $html(item.displayName?item.displayName:item.name) + '</a>';
                    }
               }
              ObjectFinder_fnRenderCellListItemActions(elCell, oRecord, oColumn, oData)
            {
                if (scope.options.disabled === false)
                   {var links = "", link, listAction;
                 for (var i = 0, il = scope.options.listItemActions.length; i < il; i++)
                         {
                      listAction = scope.options.listItemActions[i];
                      if (listAction.event)
                            {
                              if(item.site=="xx Any RAndom Site xxxxx"){
 links += '<div class="list-action"><a href="#" class="' + listAction.name + ' ' + ' list-action-event-' + scope.eventGroup + ' ' + listAction.event+ '" title="' + scope.msg(listAction.label) + '" tabindex="0" target="_blank">' + scope.msg(listAction.label) + '</a></div>';
    }
                      

Outcomes