Persons with two managers

Hi,

is there any workaround to display persons, who have two managers in a hierarchy?

Thanks!

Hi,

What kind of data source do you use, SharePoint list or User profiles?

If it is a SharePoint list, you can use following workaround:

Create fictitious item for root node and add additional column to SharePoint list, for example “SecondPersonName”. Then change HTML template of a box in the configuration wizard. You can specify conditional logic, which will use specific HTML to render root node and other HTML to render other nodes. Thus, you will be able to display in the root node two names and use regular html template for typical nodes.

This is how default HTML template for box looks:

[code]

{{#detailsTooltipLink}} {{PreferredName}} {{/detailsTooltipLink}}
{{Title}}
{{Department}}
[/code]

You can add condition to switch between different HTML:

[code]{{#if SecondPersonName}}

{{else}}

{{#endif}}[/code]

Please find more information in documentation:
Box template in the configuration wizard
HTML templating syntax

Hi Anton,

Thanks for the reply. And how is it, if the data source cames from User profiles?

I need to understand how your data in user profiles is organized. Then I will try to suggest something. Could you describe what properties do you have in user profiles to reflect two managers hierarchy? Out of the box set of properties doesn’t allow it.

Please, could you provide me some example with a few employees. Describe relations and values of properties from user profiles.

Hi Anton,

We organised the two managers box and fixed it. I have one question about sorting the user profiles.
According to what criteria are the user profiles sorted as they are displayed? For example automatically by names oder by the guids?

Hi,

If you downloaded your version after February 11 it uses field specified as display text for sorting boxes (for SharePoint profiles it is preferable name).

You can change sort order. Please take a look at other my reply which describes how to do it.

Hi Anton,

Thanks a lot. I installed the new version of orgchart. There is a 404 not found request, just see the screenshot in attachments. What kind of problem can this be?


Hi Guerkan,

Thank you for your question. This error is about .map file. It doesn’t have to affect functionality of org chart. Please let me know if you have any issues with functionality of org chart.

Regarding error with .map file, we will consider it and include fix into our roadmap.

Hi Anton,

Thank you for the reply. It doesn't effect functionality of orgchart. When i began to edit the box template into the new version of orgchart with the following code:

{{#if Manager2Name }}
	{{#if Manager3Name}}
  		<div class="orgChartThreeManagersDepartment">
    	{{Department}}
  		</div>
	{{else}}
  		<div class="orgChartTwoManagersDepartment">
    	{{Department}}
  		</div>
	{{/if}}
{{/if}}
{{#if Manager2Name }}
	{{#if Manager3Name}}
		<div class="orgChartThreeManagers">
	{{else}}
        <div class="orgChartTwoManagers">
	{{/if}}
{{/if}}
<div class="orgChartInnerBox">
<div class="pl-item-photo">
  {{#if PictureURL}}
    {{#detailsTooltipLink}}
      {{safeImage PictureURL}}
    {{/detailsTooltipLink}}
  {{else}}
    <img src="/_layouts/images/O14_person_placeHolder_32.png">
  {{/if}}
</div>
  {{#if FirstAider}} 
    <div class="first-aid">
      <img width="35" height="35" title="First aid trained" src="/Our-Company/Organisation/PublishingImages/First_Aid_Green_Cross.png">
    </div>
  {{/if}}
<div class="pl-item-fields">
  <div class="field-container header-field">
    {{#detailsTooltipLink}}
      {{FirstName}}</br>{{LastName}}
    {{/detailsTooltipLink}}
  </div>
  <div class="field-container ">
    {{SPS-JobTitle}}
  </div>
{{#unless Manager2Name }}
  <div class="field-container">
    {{Department}}
  </div>
{{/unless}}
  </div>
  
  </div>
 {{#if Manager2Name}}
  <div class="orgChartInnerBox">
    <div class="pl-item-photo">  
      {{#detailsTooltipLink}}
        {{#if Manager2PhotoUrl}}
          {{#detailsTooltipLink}}
            {{safeImage Manager2PhotoUrl}}
          {{/detailsTooltipLink}}
        {{else}}
          <img src="/_layouts/images/O14_person_placeHolder_32.png">
        {{/if}}
      {{/detailsTooltipLink}}
  </div>  
  <div class="pl-item-fields">
  
  <div class="field-container header-field">
    {{#detailsTooltipLink}}
    {{Manager2Name}}
    {{/detailsTooltipLink}}
  </div>
  
  <div class="field-container ">
    {{Manager2Title}}
  </div>
   </div>
   </div>
   {{/if}}
   
{{#if Manager3Name}}
  <div class="orgChartInnerBox">
    <div class="pl-item-photo">  
      {{#detailsTooltipLink}}
        {{#if Manager3PhotoUrl}}
          {{#detailsTooltipLink}}
            {{safeImage Manager3PhotoUrl}}
          {{/detailsTooltipLink}}
        {{else}}
          <img src="/_layouts/images/O14_person_placeHolder_32.png">
        {{/if}}
      {{/detailsTooltipLink}}
  </div>
    <div class="pl-item-fields">
  <div class="field-container header-field">
    {{#detailsTooltipLink}}
    {{Manager3Name}}
    {{/detailsTooltipLink}}
  </div>
  
  <div class="field-container">
    {{Manager3Title}}
  </div>
    </div>
</div>
{{/if}}
</div>

I get the error message (see attachment):

Why i suddenly get this error? In the earlier version of orgchart it worked with this code.


Hi Guerkan,

Thank you for the HTML template. As I understood you use SharePoint list as a data source. It would be great if you could provide us with structure of this list (field internal names and types). Sample of data from this list (without sensitive information) would also help. You can post it here or send to support@plumsail.com.

This will help us to reproduce the issue on our side and resolve it quicker.

Thank you in advance.

Hi Guerkan,

According to information from your email message I understood that custom template works for you now. But you have some questions about JavaScript framework and CSS styles, because they were changed in Org Chart version 2.

Feel free to post your questions about this in new thread or contact support@plumsail.com.

Hi Anton,

About CSS and JS it is not nessesary anymore. I fixed it. The reason why the arrows and lines weren’t shown, was because of float attributes. The only thing is about the search function of more manager in a box. I already wrote you an email about this.

Hi Guerkan
Could you say a little more about how you solved this problem? I’m guessing you had a property in either Active Directory or Sharepoint called “Manager 2” etc. But how did you control how that appears in Plumsail?

Many thanks, Paul

Hi Paul,

Now we have one more option. We can add support of two managers by request. It is paid support.

We can display person below both managers and detect one of connections by dotted line. Please take a look at the screenshots below.

You can send your request to support@plumsail.com and we will provide you estimation.