Sahrepoint 2013'de MySite haricinde Organization Browser Kullanmak

       Sharepoint 2013'de Organization Browser yada Türkçe adı ile Kuruluş tarayıcısını MySite haricinde yayınlamak istediğinizde ekranda hiç bir şey göremeyeceksiniz. Bu sorunu çözmek için sayfa içine WebPart bölümlerinden Media and Content altındaki Editör ekleyerek HTML düzenle bölümünden aşağıdaki kodu yapıştırarak 2013 de çalışmayan Organization Browser'ı çalışır hale getirmiş olacaksınız.


<script type="text/javascript">
function CreateHierarchyChartControl(parentId, profileId, type, persistControlId) {
  var i = profileId.indexOf("|");
  var claimsmode = profileId.substr(i-1,1);
  if((i >=0 ) & (claimsmode=="w"))
  {
   profileId = profileId.substr(i+1,profileId.length-i-1);
   var initParam = profileId + ',' + type + ',' + persistControlId;
   var host = document.getElementById(parentId);
   host.setAttribute('width', '100%');
   host.setAttribute('height', '100%');
   Silverlight.createObject('/_layouts/ClientBin/hierarchychart.xap',
    host,
    'ProfileBrowserSilverlightControl',
    {
     top: '30',
     width: '100%',
     height: '100%',
     version: '2.0',
     isWindowless: 'true',
     enableHtmlAccess: 'true'
    },
    {
     onLoad: OnHierarchyChartLoaded
    },
     initParam,
     null);
    }
  }
</script>


Anonymous

Unknown

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 yorum: