• Know more about me

Mai Omar Desouki

~ Senior Cloud Solution Architect @ Microsoft

Mai Omar Desouki

Monthly Archives: March 2014

Organization Browser blank/missing/bug in Non-MySites in SP 2013

22 Saturday Mar 2014

Posted by Mai Omar Desouki in SharePoint 2013

≈ 1 Comment


Ya the title has a lot to say and I am disappointed as I write this post.

So I came to a point while I am implementing a SharePoint 2013 project to a client in Egypt, where they are in need for the Organization Chart, ok no problem, or I thought no problem!!

I configured the User Profile, and started a My Site with a test user, then I looked for the Organization Chart, nothing!! Inserting it as web part after clicking “Sites” on top right, you can find under your name “Personalize this Page” to be able to insert a Web Part into My Site. Ok inserted the Web Part, of course the new name in 2013 is “Organization Browser Web Part” anyway..

Organization Browser Web Part is not by default in “My Site”

Problem:

Client doesn’t know SharePoint that well.. so WHO would edit his “My site” to add the Web Part!! Believe me even with a training to them, they won’t.. they will forget.. they are lazy.. CLIENTS
J nothing new.

Solution:

Either I create a feature with event receiver that once activated, it adds the Organization Browser Web Part to all “My Sites”, I think we need as well a Timer Job to check later if there is a new “My site” created to add the web part to it.

Ok.. many steps & lots of work to do but doable, right.

Another case:

We need this Web Part on the Portal itself and not My site.. is when we will say “Sweet times” but it is “miserable times”

Just first enable this feature “SharePoint Server Enterprise Site Collection features”.

Problem:

Now try to add the Organization Browser Web Part in any page, its empty or call it blank or it is not working… I called it BUG.

Solution:

Add a Content Editor Web Part below the “Organization Browser Web Part” and add this script inside it & it will work & Voila!

After searching, I got the script from here

<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>

Should I tell you Enjoy SharePointing!! Or just cry L anyway god bless us J

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Heads Up.. Mai Omar Desouki is Speaking at the SPSGulf 2014

20 Thursday Mar 2014

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


Article by: Mai Omar Desouki

SharePointers… this is the first SharePoint Saturday for the Gulf & ONLINE.. yup online SharePoint Saturday..

Speakers are all from different locations and still will be delivering to you the most exciting sessions by MVP, MCT & many SharePoint experts.

You’d better don’t miss it, and take a look at the speakers here

Registration is here..

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Heads Up.. I am Speaking at the SPSGulf 2014

19 Wednesday Mar 2014

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


SharePointers… this is the first SharePoint Saturday for the Gulf & ONLINE.. yup online SharePoint Saturday..

Speakers are all from different locations and still will be delivering to you the most exciting sessions by MVP, MCT & many SharePoint experts.

You’d better don’t miss it, and take a look at the speakers here

Registration is here..

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Blog Visitors

  • 82,365 Visitors

Categories

  • About me (1)
  • Microsoft Teams (3)
    • SharePoint Online (1)
  • Microsoft Viva (1)
  • Migration (2)
  • OneDrive for Business (1)
  • Parents (1)
  • Power Platform (1)
  • SharePoint 15 (5)
  • SharePoint 2010 (56)
    • Content Types (1)
    • Developer Dashboard (1)
    • Document Set (1)
    • Events I am Speaking In (2)
    • External Lists (1)
    • FAQ (2)
    • FBA (1)
    • Form Based Authentication (1)
    • Integration of CRM 2011 with SharePoint 2010 (1)
    • JQuery (1)
    • Master Page (1)
    • My Site (1)
    • PowerShell (3)
    • SharePoint Administration (5)
    • SharePoint Branding (1)
    • SharePoint Customization (5)
    • SharePoint Designer (4)
    • SharePoint Designer Workflow (1)
    • SharePoint Events (2)
    • SharePoint Online (1)
    • SharePoint Permissions (1)
    • SharePoint Workflow (1)
    • User Profile (2)
    • User Profile Sync (1)
    • Videos (1)
    • WebParts (1)
    • Workflow (1)
  • SharePoint 2013 (91)
    • Cloud App (1)
    • Event Handler (1)
    • iPad (1)
    • IPhone (1)
    • Napa (1)
  • SharePoint Updates (1)
  • Visual Studio 2012 (3)
  • Viva Engage (1)
  • Yammer (1)

Tag Cloud

About me Document Set Events I am Speaking In FAQ FBA Form Based Authentication JQuery Master Page Microsoft Teams Migration My Site PowerShell SharePoint 15 SharePoint 2010 SharePoint 2013 SharePoint Administration SharePoint Branding SharePoint Customization SharePoint Designer SharePoint Designer Workflow SharePoint Events SharePoint Online SharePoint Permissions SharePoint Workflow User Profile User Profile Sync Videos Visual Studio 2012 WebParts Workflow

Calendar

March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Feb   Apr »

Archive

  • September 2022 (2)
  • August 2022 (2)
  • July 2022 (2)
  • March 2022 (1)
  • August 2021 (2)
  • September 2020 (2)
  • May 2020 (2)
  • April 2020 (6)
  • March 2020 (1)
  • September 2019 (2)
  • July 2015 (1)
  • May 2015 (3)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • October 2014 (1)
  • September 2014 (3)
  • June 2014 (7)
  • May 2014 (5)
  • April 2014 (4)
  • March 2014 (3)
  • February 2014 (1)
  • January 2014 (2)
  • December 2013 (6)
  • November 2013 (5)
  • October 2013 (6)
  • September 2013 (5)
  • August 2013 (5)
  • July 2013 (5)
  • June 2013 (2)
  • May 2013 (2)
  • February 2013 (2)
  • January 2013 (1)
  • October 2012 (2)
  • September 2012 (7)
  • August 2012 (15)
  • July 2012 (5)
  • June 2012 (2)
  • May 2012 (4)
  • April 2012 (2)
  • March 2012 (1)
  • August 2011 (3)
  • July 2011 (15)

Blog at WordPress.com.

  • Follow Following
    • Mai Omar Desouki
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Mai Omar Desouki
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: