Getting started
Configuration wizard
HTML templates
JavaScript framework
Additional resources
- Video: Introducing Plumsail Org Chart
- Data caching
- SharePoint Server 2019/SE (On-Premises) resources
- Installation for SharePoint 2019 / SE
- Quick configuration
- How to add Org Chart to Microsoft Teams tabs
- Generate organization structure report
- Layout
- Filtration
- JavaScript custom code
- General settings
- Display assistants
- Display dotted-line managers for Org Chart
- Display vacancies
- Customize box HTML template and CSS styles
- HTML templating syntax
- Change Org Chart skin
- Create org chart with two root managers
- Order employees boxes using custom field
- How Org Chart pulls data from AD On-Premises
- Drill down to current user by default
- Drill down to specific box using URL parameter
- Include and use fields from additional list
- Use advanced Org Chart navigation
- How to open Org Chart in full-screen mode on load
- Support of search in a list with more than 5000 items
- Exclude disabled users in On-Premises
- Configuring profiles sync in On-Premises
- Make sure that SharePoint has enough data
- Exporting properties to a directory service
General
- Version history
- Licensing details
- Data protection and security
- Custom code security measures
- Billing and subscription management
Printing & Reports
- Printing organizational structure
- Generate multi-page PDF report
- Export to CSV and analyze in Excel
- Custom styles for printed Org Chart
Microsoft Teams
Display different types of employees
Filter and order boxes
- Create and manage filtered views
- Order employees boxes using a custom field
- Group employees boxes using a custom field
Customize boxes and styles
- Format boxes conditionally
- Customize box HTML template and CSS styles
- Display awards and conditionally format Org Chart
- Create an Org Chart with two root managers
- Change Org Chart theme
- Localize Org Chart
Show specific user on load
- Drill down to specific box using URL parameter
- Drill down to current user by default
- Drill down to manager of user from URL by default
Manage web part size and scale
- Open Org Chart in full-screen mode on load
- Make Org Chart use full page width
- Automatically scale boxes to fit visible area
Other examples
- How to customize Org Chart
- How to use advanced Org Chart navigation
- Use tenant properties to disable Org Chart features
- Include and use fields from additional list in Org Chart
- Support of search in a list with more than 5000 items for Org Chart
- Show Org Chart based on a list data source for anonymous users
- How to check if a user has Tenant Administrator permissions
Include and use fields from additional list in Org Chart (SharePoint Server 2019/SE)
In this tip, I will show you how to include and use fields from another list in your Org Chart structure.
For example, you may add the information about average sales per month for all employees and mark by red color and set the bold weight for a value if an employee has less than 5 sales. Please take a look at the picture below:
For that you need to open the configuration wizard and switch to Custom JavaScript step:
And add one of the code samples below. For the SharePoint list data source:
renderer.config.additionalList.listServerRelativeUrl = "/sites/kovalev/Lists/AddList";
renderer.config.additionalList.queryFunc = function (itemData) {
return "(ID eq " + itemData["ID"] + ")";
}
For the User profiles data source:
renderer.config.additionalList.listServerRelativeUrl = "/sites/kovalev/Lists/AddList";
renderer.config.additionalList.queryFunc = function (itemData) {
var accountName = renderer.dataProvider._idResolver.trimUserProfileId(itemData["AccountName"]);
return "(Account eq '" + accountName + "')";
}
IDandAccountare columns in the additional list used for correlation with the main data source.renderer.config.additionalList.listServerRelativeUrl– a server-relative URL of your additional list. Properties of items from this list will be added to items in OrgChart structure.renderer.config.additionalList.queryFunc– a function that will return a rule for the one-on-one relation between an item from the data source list and an item from your additional list. You need to use the syntax of OData filtering for writing this rule.
Now you can use additional properties to implement additional logic into your OrgChart structure.
In my case, I need to add the additional property with average sales to the box template. For that, I chose Box template step of the configuration wizard, switched to HTML mode and added the token that will be replaced by a value of the property from the additional list:
As you can see on the picture, I used this token: {{pochContext.listData.AvgSales}} (where AvgSales is internal name of AvgSales field in the additional list).
Note
All properties of the item from the additional list will contained in pochContext.listData variable.
After these steps I will see the average value inside an employee box. And all I need to do it is just set the color of the value and change the font weight if an employee has less than 5 sales.
For that, I changed onBoxRendered event on Custom JavaScript step like this:
renderer.onBoxRendered(function(event, box, itemData){
//Box rendered event
if(itemData.pochContext.listData.AvgSales < 5){
box.$elem.find(".avg_sales").css({
'color': 'red',
'font-weight': 'bold'
});
}
});
That is all! Now you know how to add properties of the item from another list to properties of the item from data source list.