Installation Documentation, Advanced Configuration + FAQs

Introduction 

EngineerTree allows the presentation of tree diagrams, org charts or other hierarchies in HighQ Home or Wiki pages. 

  

Prerequisites 

  

Installation

Download engineerTree.js (and engineerCore.js, if required), 

Upload both files to your HighQ instance in the System Admin File Library - This can be reached by clicking the profile picture/icon in the top right of your HighQ Instance > System Admin > File Library. Click “Add new file” and select each of the files to upload.

Copy each of the URLs for the uploaded files, we'll need to reference these when using the list in each HighQ site. Right click on the file in the filename column and click copy link then paste the link into a new text or Word document to keep them handy, you can use the format below. DO NOT use the Get Link/Public link column, this will make your file publicly accessible. 



Updating your version

When new versions become available download the updated js files provided. Then, in your HighQ instance, navigate to the System Admin File Library and locate your existing engineerTree.js install. Clicking on the file ID to the left of this filename will open the "Update file" page, allowing you to replace the older file with the updated one you just downloaded. BEWARE: this overwrite happens immediately upon clicking Save and is irreversible. Ensure you are overwriting the correct file by double checking the File name field before clicking Choose File. It is advisable to always have backups of all files stored in the System Admin File Library.

After updating the file it can sometimes take a a little while to update for all users if their browsers are caching older code, if any user reports issues advising them to clear their cache using CTRL + SHIFT + R to do a hard refresh of the page.

Adding a tree to a HighQ site 

You’ll need iSheets and either the Home or Wiki modules available in your site. 

An example iSheet structure for EngineerTree

Apart from the first row, all other rows must have a value in the 2nd column that matches a value in the first.

Add to your Home/Wiki page 

Go to the Home or Wiki page where you would like your tree to appear. Edit the panel and select Source view. 

Use the HighQ editor to add a link to your iSheet view (more help here: Add a link to a page with the rich text editor - Thomson Reuters HighQ Knowledge)

Once you've created your link, open the panel in Source view and paste in the below minimum code needed to run – the “flag_” links will need to be replaced with your links from the installation section. Ensure there is no space before the closing "</script>" tag when you edit these as this can cause the chart to load multiple times.


<div id="treeContainer1"><script>

            engineerTree({

            container: 'treeContainer1',

            });

</script><!-- EngineerCore --><script src="./flag/flag_50i54j53i54h51k53k54.action"></script><!--EngineerTree--><script src="./flag/flag_50l53n55j49j57k51i50.action"></script></div>

 

Click Ok and then Save and your tree should appear. 

You can hide the link to your iSheet view if you don't want it to be visible by opening the Source view again, and locating this bit of HTML: 

class="CKContextLink" and adding a space inside the last double quote and adding the word "hidden" so: class="CKContextLink hidden"

 

Modifying Options 

The code for each tree can be modified by setting the options, these are the lines of code ending in a comma (,) between the curly braces ({}) after “engineerTree”. Each line changes or provides information to a different component of the tree. Details of all the options available are listed in the Advanced Configuration section of this guide. 

To add a new option, add a new line after the last comma and before the last curly brace and add your option line as below. 

Warning: HighQ does not keep a version history of your edits to code in Home pages so it's good practice you save your code into another window such as notepad before making changes in case you need to roll back.  

 

        container: 'treeContainer1', <<ADD NEW LINE HERE>> 

   }); 


For example, if you wanted to change the style of the lines connecting your nodes to steps instead of curves you would use the lineStyle option. 

 

We would add a new line to the code above, add our option, then a colon (:) then a single quote (‘) then the word step, then another single quote and comma. 


        container: 'treeContainer1',  

        lineStyle: 'step'

   }); 

 


Advanced Configuration 

This section lists all the possible options that can be used to modify the standard behavior of the chart. See “Modifying Options” section for instructions on using these. 


Required Options 


The below options MUST be included for the tree to load.


container

e.g.

container:'treeContainer1', 


Tells the code where you want the chart to appear on your page. It requires a corresponding HTML element similar to <div id="treeContainer1">&nbsp;</div>

 somewhere on the page. This div element can use any term between the quotes in the id= attribute as long as it corresponds exactly with the container option value. 


Configuration Options 

The below options can be used to modify the behavior or look and feel of the chart. They do not need to be set and can be removed to return them to their defaults.


nameColumn

e.g.

nameColumn: '2', 


parentColumn

e.g.

parentColumn: '2', 


backgroundColorColumn

e.g.

backgroundColorColumn: '3', 


labelColumn

e.g.

labelColumn: '3', 


statusColumn

e.g.

labelColumn: 'false', 



holdingColumn

e.g.

holdingColumn: '3', 


minorityHoldingLevel

e.g.

minorityHoldingLevel: '40', 


otherColumns

e.g.

otherColumns: '3,4,11', 


showOtherColumnHeaders

e.g.

showOtherColumnHeaders: 'false', 


exportButton

e.g.

exportButton: 'true', 


fullscreenButton

e.g.

fullscreenButton: 'true', 


enableSearch

e.g.

enableSearch: 'true', 


lineStyle

e.g.

lineStyle: 'straight', 


lineColor

e.g.

lineColor: 'navy', 


nodeWidth

e.g.

nodeWidth: '200', 


nodeHeight

e.g.

nodeHeight: '100', 


nodeSeparation

e.g.

nodeSeparation: '5', 


levelSeparation

e.g.

levelSeparation: '100', 


nodeBorderWidth

e.g.

nodeBorderWidth: '3', 


nodeBorderColor

e.g.

nodeBorderColor: 'navy', 


nodeTextColor

e.g.

nodeTextColor: 'white', 


labelColor

e.g.

labelColor: 'red', 


labelFontSize

e.g.

labelFontSize: '1.5 em', 


hoverColor

e.g.

hoverColor: 'orange', 


panelLinks

e.g.

panelLinks: 'viewItem',