Article last updated on the 2nd of June 2022.
2.1. Modern UI
2.2. Classic UI
The Relations module is used for creating dynamic relations related to roles between entities across a solution. This is especially useful when creating many-to-many relations and can be used to always have an overview of relations between entities and personnel.
Administrators can set up specific relation types e.g. Lawyer and/or Client, and relation pairs, such as Lawyer <--> Client. Relation pairs always requires a setup with two relation types which must both be unique. Setting up a relation enables users to quickly navigate to and from entities which have some relation to each other.
Permissions can also be set up in such a way that only specific people can see certain relations. This is referred to as "Security trimming".
Relations can be set up to be displayed in a webpart on a WorkPoint page.
2. Configuration of Relation Module settings
Setting up and configuring the Relations module in a WorkPoint solution is done through the WorkPoint Administration, which can be accessed by following these steps:
2.1. Modern UI
Accessing the WorkPoint Administration in a Modern UI version of WorkPoint can be done by following these steps:
- In your WorkPoint365 click the "Home" button in the upper left corner of the page.
- Click the cog icon in the bottom of the side panel to enter the WorkPoint Administration.
2.2. Classic UI
Accessing the WorkPoint Administration in a Classic UI version of WorkPoint can be done by following these steps:
- In your Classic UI WorkPoint solution, click the cog icon in the top-right of the solution.
- Click the "WorkPoint Administration" menu item from the list.
From the WorkPoint Administration, follow these steps to access the Relations Module settings:
- When on the WorkPoint365 administration page, click the “Relations” button in the left navigation menu.
- Click to either enable or disable security trimming. Security trimming makes it possible to control which people can see which relations. Security trimming introduces a minor performance impact when loading relations. This should therefore only be used when necessary.
An example of the use of security trimming could be users A and B who have access to a project. Users B, C, and D also have access to a company. In this example, only user B can see a relation between the two entities.
The relationship can be exemplified as in the following image:
- On the “Relation settings” page there are two tables: One for “Relation types” and one for “Relationtype pairs”
- Add the relation types that you might use. An example of a relation type could be “Lawyer”, “Client” or perhaps “Partner”. Relation types added in the left table will automatically be available for use when you add a “Relationtype pair” in the right table.
- Add some relation type pairs based on the relation types you just added. These relationtype pairs define the kind of relationships that can be formed between business module entities (eg. Companies, Projects or others)
- When satisfied with the setup, press the “Save settings” button below the “Relationtype pairs” table.
4. Configuration of Tab Views (for Classic UI)
The following only applies to the Classic UI version of WorkPoint. In this version WorkPoint, Relations can be shown in a so-called tab view. Other types of information are shown in tab views, such as documents and emails. Tab views look like this in the the Classic UI version of WorkPoint:
In order to display relations in a tab view, such a tab view must be defined. This can be done through the WorkPoint Administration by following these steps:
- On the solution, click the cog icon in the top-right of the page.
- Click the "WorkPoint Administration" menu item.
- On the WorkPoint365 administration page, click the desired business module to get its drop-down menu.
- Under “Advanced Settings” click on the “Tab View settings” button.
- Name your new tab
- Select the “Relation” type from the “Type” select drop-down.
- Select the relation types you wish to see in the tab using the “Relationtype” multi-select menu (Select more by holding down the “Ctrl” key while selecting relation types).
- Check “Include inactive relations” if you want to show relations that are not active anymore. Note that it is possible to add more relation tabs with different relation type options.
- Save your settings.
A new tab view now shows relations once they are created. An example is shown in the image below:
5. Adding the Relations webpart (for Modern UI)
Relations can be shown in WorkPoint 365 with a specialized webpart for the purpose. This webpart is called the "WP365 - Relations" webpart.
The webpart can be set up in the following way:
- When editing a page, click the "+" button to add a new webpart.
- Search for a fraction of the word "Relations".
- Select the "WP365 - Relations" webpart from the list.
- Click the "Edit" button to configure the webpart.
- Provide a title for the webpart.
- Click the "Relation types" field to select which relations to add to the webpart. From here, you can select from the types of relations that are configured on the solution.
- Toggle the "Show inactive relations" checker to make the webpart hide or display inactive relations for the entity.
- Toggle the "Show relations in grouped list" checker to make the webpart show relations as a plain list or as a grouped list.
- Use the Hide options to hide delete, edit relation, and edit entity options from the pop-up when relations are selected in the webpart.
- Select which columns should be shown for each relation in the webpart. The checkboxes can be used to show or hide the columns, and the number selectors can be used to order the columns from left to right.
- Select a business module to add additional columns from. Only one business module can be selected. In this example, the webpart is showing relations between projects and organizers - in this case a company. Therefore, we use the "Companies" business module to be able to show additional columns from the company related to the project we are currently located on.
- Optionally select a MyTools button configured on the business module selected in pt. 10. This button will appear in the pop-up displayed when a relation is selected in the webpart, giving you easy access to functionality on the relation.
- Select which columns to add from the selected business module. In this example, we add the Site icon which allows us to go directly to the site of the related company, and the company ID.
- Use the checkers for the additional columns to show or hide them. Use the number selectors to order the columns from left to right.
- Click the "Republish" button. If this is the first time publishing this page, the button will simply be called "Publish".
The result is a webpart like this. Note that we have re-ordered the columns to show the site icon and the company ID as the 3rd and 4th columns.:
Note that sizing of columns are cached. This means that if you change the horizontal size of the columns by dragging, the new size is saved, and appears the same next time you visit the webpart. Resizing a column is shown in the image below.
Clicking the title of a relation opens a window displaying meta data from the related entity. In the following example, a relation has been created between a project and a contact person:
Note that the fields shown in the pop-up window are defined by the default view of the list of the related entity. If you wish to change the fields shown here, you will need to change the default view of the list.
6. Configuration for using Relations in WorkPoint Express
WorkPoint Express uses Tab Views to show relations - just like the Classic UI version of WorkPoint. Therefore, if it should show up in WorkPoint Express, a tab view for this functionality must be set up. This can be done in the following way:
- In the WorkPoint Administration, click the header of the business module for which relations should be configured.
- Click the "Tab View settings" menu item.
Tab View settings are used for configuring which tabs are visible in WorkPoint Express. A new one needs to be created to display the relations for the business module:
- Tab View webpart settings can be applied to individual site pages from the Master Site. These site pages can be selected from this drop-down menu. In this case, the setting is left at "Default".
- Click the "Add tab" button to add a new tab to the list.
- Use the "Move up" and "Move down" buttons to move the new tab to the desired position. In this example, the new tab has been moved to the bottom of the list. This also affects where the "Relations" tab is eventually placed in WorkPoint Express.
- Give the new tab a title of "Relations" or whatever title you want the relations tab to have.
- Set the "Type" of the tab to "Relation".
- For "Relationtype", select the relation types to be displayable in the tab. You can select multiple relationtypes by shift-selecting multiple items. In this case, "Organizer" and "Project" is selected.
- If the tab should also include inactive relations, set the "Include inactive relations" checker.
- When done, click the "Save" button.
The configuration of the Tab View, which WorkPoint Express uses to display the different sections of entities, is now set up to display relations in the Relations tab. An example of this is shown in the image below:
New relations can also be created from WorkPoint Express:
- Right-click the Relations tab view
- From the "Create Relation" section, click one of the "New relation" buttons. These are the buttons set up in the MyTools menu for creating new relations, and new buttons can be created in the MyTools settings.
7. End User Guide
Click here to go to the end user guide article for Relations module.
When you have added your relation between two entities, and added the relations in the Relations webpart, the result will look like this.
The relation can be inspected by clicking the title link for the relation:
The window that opens from clicking the title link presents the user with the following options:
- Click the "GO TO" button to go to the site of the project.
- Click the "EDIT" button to edit the relation.
- Click the "DELETE" button to delete the relation.
The relation can also be viewed in WorkPoint Express:
In the red box in the image above, the relation between the Anderson's Custom Bikes company and the Design of Bike0075 project is shown in the "Active relations" tab on the "Anderson's Custom Bikes" entity. This tab is created automatically if a relation is created to an entity for which a tab view has not been set up. The relation is also visible from the project, which can be accessed in WorkPoint Express by simply double-clicking the project title:
In the Classic UI version of WorkPoint, the Relations tab is shown next to the other tab views:
9. Security trimming
As previously mentioned, security trimming refers to who can see relations between entities. The concept is illustrated in the image below:
In this example, there are two entities; a project and a company. Some relation exists between these two entities.
Person A only has permission to view information for the project, and persons C and D have permission to view only information about the company. Person B has permission to view information about both the project and the company. The relation between the project and the company is therefore only visible to Person B while invisible to persons A, C, and D.
Please note that you should only enable security trimming if you have configured some security settings on your solution. Also note that enabling security trimming has a minor impact on performance when loading relations.
Security trimming can be enabled from the Relations Module settings page: