Fiori Elements Tree Table Example: A Comprehensive Guide

Ashley Aug 09, 2026

When it comes to presenting and managing complex data, the Fiori Elements Tree Table component is a game-changer in SAPUI5 and SAP Fiori. It offers a flexible, user-friendly way to display hierarchical data, making it easier to navigate and understand. Let's delve into the world of Fiori Elements Tree Table, exploring its features, creation process, and an example to help you grasp its functionality.

the parts of a tree with labels on it and labeled in spanish, including names
the parts of a tree with labels on it and labeled in spanish, including names

The Fiori Elements Tree Table component is part of the SAP Fiori for SAP S/4HANA cockpit services library. It is an enhanced version of the popular orgchart component, offering more customization, optimization, and better performance. It's not just about looks; it's about enhancing the user experience and boosting productivity.

a diagram showing the different types of lines in each section, and how they are connected to
a diagram showing the different types of lines in each section, and how they are connected to

Understanding the Fiori Elements Tree Table

At its core, the Tree Table is a tree control bound to a JSON model. It displays data in a hierarchical, easy-to-scan format, with each node representing an entity and its children. It's perfect for displaying data like organizational charts, product hierarchies, or other tree-like structures.

Solo quiero el arbol Mind Map Design Creativity, Chart School, Mind Map Design, Family Tree Project, Biology Projects, Classroom Charts, Fingerprint Art, File Decoration Ideas, School Board Decoration
Solo quiero el arbol Mind Map Design Creativity, Chart School, Mind Map Design, Family Tree Project, Biology Projects, Classroom Charts, Fingerprint Art, File Decoration Ideas, School Board Decoration

But what makes the Fiori Elements Tree Table stand out? Here are a couple of key features:

Dynamic Expansion

the tables are set up with pink flowers and candles for an elegant wedding reception at the four seasons hotel
the tables are set up with pink flowers and candles for an elegant wedding reception at the four seasons hotel

With dynamic expansion, users can choose which nodes to expand and collapse. This feature improves performance by only loading the data that's currently visible, a boon for large datasets.

In comparison, the orgchart component expands all nodes by default, which can lead to slower load times and overwhelmed users. Dynamic expansion empowers users to control their viewing experience.

Responsive Design

the table is set with white flowers and place settings
the table is set with white flowers and place settings

The Tree Table is fully responsive, adjusting its layout based on the device or window size. This adaptability ensures a great user experience, whether you're on a desktop, tablet, or mobile device.

Moreover, the responsive design comes with improved usability on touch devices. For instance, tapping a node on a mobile device expands or collapses it, providing a intuitive interaction model.

Creating a Tree Table: A Step-by-Step Example

an image of trees and their roots
an image of trees and their roots

Let's create a simple Tree Table displaying a company's organizational structure. We'll use the SAPUI5 framework and OData service for this example.

First, include the required dependencies in your XML view:

a tree with a wooden shelf attached to it
a tree with a wooden shelf attached to it
the table is set with white linens, silverware and pink cherry blossom trees
the table is set with white linens, silverware and pink cherry blossom trees
a table is set up for a wedding reception with flowers and candles in the center
a table is set up for a wedding reception with flowers and candles in the center
a paper cut out of a tree on top of a white table next to a potted plant
a paper cut out of a tree on top of a white table next to a potted plant
two tables with candles and flowers on them in a room filled with red curtains, lit by lights
two tables with candles and flowers on them in a room filled with red curtains, lit by lights
a large white tree in the middle of a room with chandeliers and tables
a large white tree in the middle of a room with chandeliers and tables
Prioritization
Prioritization
a tree diagram with different types of root and intermode roots in the middle
a tree diagram with different types of root and intermode roots in the middle
Tree Testing:  Fast, Iterative Evaluation of Menu Labels and Categories
Tree Testing: Fast, Iterative Evaluation of Menu Labels and Categories
"Luxury Meets Nature: The Stunning Indoor Tree Table You’ll Want in Your Home 🌿✨"
"Luxury Meets Nature: The Stunning Indoor Tree Table You’ll Want in Your Home 🌿✨"
a painting of a tree in the middle of a forest with water and flowers around it
a painting of a tree in the middle of a forest with water and flowers around it
a vase filled with lots of flowers on top of a white tablecloth next to a tree branch
a vase filled with lots of flowers on top of a white tablecloth next to a tree branch
AI nowadays is really beyond imagination
AI nowadays is really beyond imagination
Business Rules Management Software
Business Rules Management Software
a table topped with lots of white flowers next to candles and greenery on top of it
a table topped with lots of white flowers next to candles and greenery on top of it
Luxury Florist NYC | Rachel Cho Floral Design
Luxury Florist NYC | Rachel Cho Floral Design
a long table is set with white flowers and place settings
a long table is set with white flowers and place settings
the poster shows different types of flowers and plants in each color scheme, including sunflowers
the poster shows different types of flowers and plants in each color scheme, including sunflowers
LOTUS Example
LOTUS Example
Wedding Decor | Corporate Events | Event Rentals | Toronto | R5 Event Design
Wedding Decor | Corporate Events | Event Rentals | Toronto | R5 Event Design

```xml ```

Next, bind the model in your controller:

```javascript sap.ui.define([ "sap/ui/core/mvc/Controller" ], function (Controller) { "use strict"; return Controller.extend("com.example.controller.Main", { onInit: function () { var oModel = new sap.ui.model.odata.ODataModel("http:///sap/opu/odata/sap/ZORG_STRUCTURE"); this.getView().setModel(oModel); } }); }); ```

Binding and Formatting

In the above example, we're using the OData model to bind data to the Tree Table. The `/OrgStructure` path in the items aggregations is an assumption; replace it with your actual data source.

The `customColumn` elements allow you to define the width and labels for each column. The `itemTemplate` sets the content for each node. Remember to replace `Employees>EMPLOYEE_ID` and `Employees>FULL_NAME` with your actual field names.

Styling and Customization

The Tree Table offers various design and customization options. You can control the node icons, fonts, colors, and more. Additionally, you can enhance interactivity with context menus, conditional formatting, and even owing-based charts.

For more advanced customizations, like adding interactivity or modifying the scrolling behavior, you can use the `setGrowing` method and the `onAfterRendering` API.

The world of Fiori Elements Tree Table is vast and packed with possibilities. Whether you're displaying an org chart, browsing products, or creating a complex dashboard, the Tree Table is a versatile tool for presenting hierarchical data.

Remember, the key to a great user experience is not just about functionality; it's about creating intuitive, engaging interfaces that put users in control. SAP Fiori Elements components like the Tree Table make that possible. So go ahead, explore the possibilities, and build amazing user experiences!