In this tutorial, you will learn how to customize business views and hierarchies to provide a better navigation experience to your business users.

Business views

Hierarchies

Graphs

Learning outcomes

Learning track

This tutorial is the fourth unit of the Data Authoring track. Make sure to complete the first three units before starting this tutorial:

If you have not completed these prerequisites, return to the Tutorials menu.

GO TO TUTORIALS

Also, if you have not already done so, click the button below to download resources such as the images and data sets that will be used in this tutorial.

DOWNLOAD TUTORIAL RESOURCES

Business views are the primary design elements for browsing data in an application. They focus on a set of related business entities that are displayed together within the same parent/child browsing experience.

In the next sections, you will be guided to enhance the business views of the Department and Employee entities.

Learning outcomes

In this section, you will modify the Department business view in order to display the employees belonging to a department.

Modify the Department business view

  1. In the HR Tutorial application, from the navigation drawer, select the Departments business view.

  1. Click the Consulting record. You will notice that the employees of this department are not displayed.

  1. To change this, go to Application Builder, expand the Entities > Department > Business Views node and open the Department business view.

  1. In the Transitions section, select DepartmentEO, and click Add Transition.

  1. In the dialog, click the Edit Expression button.

  1. Select Employees in the Attributes list, and click OK.

  1. Click Finish to close the dialog.
  2. Expand the transitions DepartmentEO > Employees and select the third line: Employee.

  1. In the Display Properties finger tab, next to the Browsing Form property, click the Select a value button, and select EmployeeBrowsingForm.
  2. Click OK.

  1. Save your work.
  2. Go back to the Welcome page and open the Employee Tutorial application.
  3. Open the user profile menu and select Refresh application.

  1. Open the Consulting department and notice the new tab that displays the list of employees of this department.

Congratulations!

You have added the list of employees that belong to a department.

To summarize:

Next, you will add an embedded collection to the employee browsing form.

You will now learn how to add the Education embedded collection to your Employee browsing form and allow the creation of multiple education records.

Modify the employee browsing form

Let us start by adding the Education embedded collection to the Employee browsing form.

  1. In the Application Builder, expand the Entities > Employee > Forms node and double-click EmployeeBrowsingForm.

  1. Drag and drop the Add Embedded Collection button into the first container of the General tab and enter the following values:

e

  1. Select the Education collection you just added.
  2. In the General section of the Properties view, enter the following values:

  1. In the Component section, deselect Allow Grid.

  1. Save your work.
  2. Validate your model: In the Model Design view, right-click on the root node corresponding to the HRTutorial [0.0] model, and then select Validate.

  1. You should have two warnings in the Validation Report view.

  1. Double-click the first warning. The Department business view opens.
  2. Select the Embedded Collection finger tab.
  3. Click Refresh Configuration.

  1. Set the following values for the Education embedded collection:
  1. Go back to the Validation Report view and double-click the second warning. The Employee business view opens.
  2. Select the Embedded Collection finger tab.
  3. Click Refresh Configuration.
  4. Set the following values for the Education embedded collection:

  1. Save your work and validate your model again. There should be no warnings.
  2. Go back to the Welcome page and open the Employee Tutorial application.
  3. In the user profile menu, click Refresh application.

  1. Select the Employee business view and open the Alexis Bull record.
  2. Observe that the form now includes a list of education records.
    This list is currently empty for Alexis Bull.

Customize the Education form

  1. In the Application Builder, expand the Entities > Education > Forms node, and double-click EducationForm.

  1. Select the ID field of the form and deselect the Visible checkbox in the Label section of the Properties view.

  1. Move FDN_Employee just below the ID.

  1. In the Component section of the Properties view, enter the following values:
  1. Save your work.

Enable the creation of multiple Education records

You will now change the behavior of the Create action to allow creating multiple education records.

  1. In the Application Builder, expand the Entities > Education > Action Sets node, and double-click EducationActionSet.

  1. In the Actions section, select CreateAuthorEducation.

  1. In the Action Configuration finger tab of the Properties view, select Support Multiple Creation.

  1. Save your work and validate your model.

Create some education records

You will now add some education records.

  1. Go to the Welcome page and open the Employee Tutorial application.
  2. In the user profile menu, click Refresh application.

  1. In the navigation drawer, select the Employee business view and open the Alexis Bull record.
  2. Open the Actions menu from the Education column, and click Create.

  1. In the stepper, enter the following values, and then click Add another:

  1. In the stepper, enter the following values, and then click Go to list:
  1. Finally, click Finish and wait for the new records to be processed.
  2. Click Click to refresh when prompted.

  1. Education records are now displayed directly in the employee form.

Congratulations!

You have enhanced user experience by customizing business views and embedded collections.

To summarize:

Next, you will learn how to configure business views and display hierarchies.

Hierarchies are useful in any data-driven application. In Semarchy xDM, hierarchies follow the parent-child relationships you have defined in your data model.

In the next sections, you will be guided to create hierarchy views for Department and Employee records.

Learning outcomes

You will now modify the Department business view to display employees in their department in a hierarchy.

Modify the Department business view

  1. In the Application Builder, expand the Entities > Department > Business Views node and double-click the Department business view.

  1. In the Hierarchy Configuration section, select Enable Hierarchy View and Open Hierarchy by Default.

  1. In the Transitions section, select the third line: Employee.

  1. In the Collection Configuration finger tab of the Properties view, enter the following values:

  1. In the Transitions section of the editor, select the second line: Employees.
  2. In the Icon and Labels finger tab of the Properties view, set the Icon to images://mdi/account-multiple.svg.

  1. In the Hierarchy Configuration finger tab, select Enable in Hierarchy.

  1. Save your work and validate your model. No errors or warnings should be returned.

Test the hierarchy view

Let us check the result in the application.

  1. Go to the Welcome page and open the Employee Tutorial application.
  2. In the user profile menu, click Refresh application.

  1. Select the Departments business view. Employees and Departments are now displayed in a hierarchy.

Customize the hierarchy view

You will now remove the Employee label from the hierarchy view to streamline the user interface.

  1. In the Application Builder, expand the Department node and open the Department business view.

  1. In the Transitions section, select the second line: Employee.

  1. In the Hierarchy Configuration finger tab, deselect Transition Node Visible.

  1. Save your work and validate your model.
  2. Go to the Welcome page and open the Employee Tutorial application.
  3. In the user profile menu, click Refresh application.

  1. Select the Departments business view. Employee records now directly display under their respective department.

Congratulations!

You have built your first hierarchy to display employees in their departments.

Next, you will build a hierarchy of employees.

In the next two sections, you will build a complete employee hierarchy that should reflect the organization chart.

In this section, you will start by implementing the employee hierarchy in your HR Tutorial model.

Add the Employee-Employee reference relationship

You first need to modify your data model to add a relationship between an employee and their manager.

  1. In the Application Builder, expand the Diagram node and open the MainDiagram.

  1. Add a self-reference for the Employee entity as shown below:

  1. Enter the following values and then click Finish:

  1. Rearrange the reference link and the other entities with drag and drop.
  2. Select Show relationship names > Label only.

  1. Select Show relationships cardinalities.

  1. Save your work.

Add the manager to the employee collection

Now you will modify the employee collection to add the manager field.

  1. In the Application Builder, expand the Employee > Collections node and open EmployeeCollection.

  1. Drag the FDN_Manager attribute and drop it between the Picture and IsContractor fields.

  1. In the Column section of the Properties view, enter the following values:
  1. Save your work.

Add the Manager field to the Employee browsing and authoring forms

Now, you will modify the employee browsing form to add the Manager field.

  1. In the Application Builder, expand the Employee > Forms node and open EmployeeBrowsingForm.

  1. Drag the FDN_Manager attribute and drop it in the Contact tab.

  1. In the Component section of the Properties view, enter the following values:
  1. In the Label section, enter the following values:
  1. Save your work.

Now you will modify the Employee authoring form to add the Manager field.

  1. In the Application Builder, expand the Employee > Forms node and open EmployeeForm.

  1. Drag the FDN_Manager attribute and drop it between the FDN_Department and Title fields.

  1. In the Component section of the Properties view, enter the following values:
  1. Save your work.

Modify the employee business view

You will now modify the employee business view to add a transition to the reporting employees.

  1. In the Application Builder, expand the Employee > Business view node and open the Employee business view.

  1. In the Transitions section, select EmployeeEO, and click Add Transition.

  1. In the dialog, click Edit Expression.

  1. Select Reports and click OK.
  2. Click Next.

  1. Leave all options to defaults in the second step of the wizard, and then click Finish.

  1. Expand the EmployeeEO node in the tree table and select Reports.

  1. In the Icon and Labels finger tab of the Properties view, set the Icon to images://mdi/account-multiple.svg.

  1. In the Display Properties finger tab, set the Display Form Tab as property to Icon and Label.
  2. Save your work and validate your model.
  3. Go to the Management perspective of Application Builder, right-click on the EmployeeTutorial, and then click Deploy Model Edition.

  1. In the Deploy Model Edition wizard, click Finish to deploy your updated model.

Congratulations!

You have added the hierarchical relationship between employees to your model. In the next section, you will populate data for this relationship, then build and test the hierarchy view.

Now that your model is updated, you will populate it to reflect the following organization chart:

Since no hierarchical data is provided in this tutorial, you will use the mass update feature on Employee records to reflect the hierarchy.

First, you will update employees in the Consulting department to make them report to Allan Mcewen.

  1. Go to the Employee Tutorial application.
  2. In the user profile menu on the top right corner, click Refresh Application.

  1. Go to the Employees business view and filter on Consulting.

  1. Select all employee records except Allan Mcewen's.

  1. In the Options menu, click Mass Update.

  1. Scroll down to the end of the form, click Update Value for the Manager, and select Allan Mcewen.
  2. Click Apply.

  1. Click Finish.
  2. When the toaster at the bottom left corner of the screen indicates "Changes successfully applied," click Click to refresh.

Now, you will update employees in the Development department to report to Martha Sullivan.

  1. Filter employees in the Development department.

  1. Select all employee records except Martha Sullivan's.
  2. In the Options menu, click Mass Update.
  3. Scroll down to the end of the form, click Update Value for the Manager, and select Martha Sullivan.
  4. Click Apply.
  5. Click Finish.
  6. When the toaster on the bottom left corner of the screen indicates "Changes successfully applied," click Click to refresh.

Now, you will update employees in the Marketing department to report to Sarah Sewall.

  1. Filter employees in the Marketing department.

  1. Select all employee records except Sarah Sewall's.
  2. In the Options menu, click Mass Update.
  3. Scroll down to the end of the form, click Update Value for the Manager, and select Sarah Sewall.
  4. Click Apply.
  5. Click Finish.
  6. When the toaster on the bottom left corner of the screen indicates "Changes successfully applied," click Click to refresh.

Now, you will update employees in the Sales department to report to Lindsey Smith.

  1. Filter employees in the Sales department.

  1. Select all employees except:
  1. In the Options menu, click Mass Update.
  2. Scroll down to the end of the form, click Update Value for the Manager, and select Lindsey Smith.
  3. Click Apply.
  4. Click Finish.
  5. When the toaster on the bottom left corner of the screen indicates "Changes successfully applied," click Click to refresh.

Now you will find the employees that do not have a manager yet.

  1. In the filter panel, set the Search type to Advanced and click the + button.

  1. Enter the following values and click Add:

  1. Click Apply.

  1. Select all employee records except:
  1. In the Options menu, click Mass Update.
  2. Scroll down to the end of the form, click Update Value for the Manager and select Tayler Fox.
  3. Click Apply.
  4. Click Finish.
  5. When the toaster indicates "Changes successfully applied," click Click to refresh.

Finally, you will update the last two employees without a manager.

  1. Select all employee records except Tayler Fox's.
  2. In the Options menu, click Edit.

  1. Make Allan Mcewen report to Lindsey Smith, and click Edit Next.

  1. Make Ellen Abel report to Louise Doran, and click Go to list.

  1. Click Finish.

Now you can browse the hierarchy starting from the CEO.

  1. Open the Tayler Fox employee form.

  1. Select the Reports tab to see who reports to Tayler.

  1. You can browse recursively the hierarchy by opening the Lindsey Smith employee form and going to the Reports tab.

The data of your org-chart is now all set. In the next section, you will build the hierarchy view and test it.

You are now ready to create the employee hierarchy view.

Create the employee hierarchy view

Create the EmployeeHierarchy business view following these steps:

  1. In the Application Builder, expand the Entities > Employee > Business Views node.
  2. Right-click Employee and click Duplicate.

  1. Open the newly created Employee2 business view, select Auto Fill, and enter the following values in the Name and Definition section:

  1. In the Hierarchy Configuration section, enter the following values:

  1. In the Transitions section, select the first line (i.e., EmployeeEO) and enter the following values in the Collection Configuration finger tab of the Properties view:

  1. In the Transitions section of the editor, select the second line (i.e., Reports) and enter the following values in the Hierarchy Configuration finger tab:

  1. Save your work.

Create an action for the hierarchy view

Now you will add a shortcut in the application menu by creating an action to open the business view.

  1. In the Application Builder, expand the Applications > EmployeeTutorial node and open Folders and Actions.

  1. Select the Root folder and click Add Action.

  1. Enter BrowseOrgChart in the Name field, and click Next.

  1. Set the Business View to EmployeeHierarchy, and click Next.

  1. Enter the following values and click Finish:

  1. Save your work.
  2. Validate your model. No error or warning should be displayed.

Refresh and test the organization chart

Now you will refresh your application and navigate the organization chart hierarchy.

  1. Go to the Welcome page and open the Employee Tutorial application.
  2. In the user profile menu, click Refresh application.

  1. In the navigation drawer, open the Org. Chart business view.

  1. You can now navigate the organization chart hierarchy, starting from the CEO.

Congratulations!

You changed the model and the data of your application to create a complete employee hierarchy to reflect an organization chart.

In the next section, you will learn about the graph navigation feature and compare it with the hierarchical view.

Semarchy xDM provides a graph visualization feature that allows business users to explore all connections related to a specific record. Graphs can enhance or substitute hierarchies, providing deeper insights into the data.

Use the Graph view

You will now discover how to examine record relationships through the Graph view. A compelling scenario is efficiently locating an employee's manager, their peers, and other people working in their department.

  1. Go to the Employee Tutorial application and select the Employees business view.

  1. Select Alexis Bull.
  2. In the browsing form, open the Options menu and click Browse Graph.

  1. The graph shows Alexis's manager, his department, and his education records. Click the Expand button on the Sales department card.

  1. Observe that the graph view allows you to see all employees from the Sales department. You will compare this feature with the hierarchy view in the next section.

  1. Click the collapse and expand buttons on the different records to browse more related objects.

  1. Move your mouse over the Lindsey Smith display card, and then click the navigate button to see the record's details.

Graph navigation versus hierarchy

You will now assess the distinctions between navigating through graphs and hierarchies.

  1. In the Employee Tutorial application, select the Org. Chart business view.

  1. Expand the Taylor Fox > Lindsey Smith node and then select Alexis Bull.
  2. Observe that the Reports tab allows you to see the direct reports of the employee (if they exist).
  3. Click on Sales on the browsing form.

  1. Observe that the hierarchy view does not allow browsing the employees from the Sales department. This would require customizing the Department browsing form to display employees in a second tab.

Depending on the business requirements, graphs can be more powerful than hierarchies and contribute to a broader user experience.

Congratulations!

You have completed the last section of this tutorial by using the graph view and comparing it with the hierarchy view.

Well done! You have customized business views and built your first hierarchy views with Semarchy xDM.

Learning recap

Next steps

The next unit, Guided data authoring, will focus on data authoring use cases to optimize the interactions that business users have with your application when authoring data.

GO TO TUTORIALS

Thank you for completing this tutorial.