Skip to Content

UI5 - Tree Table not displaying properly

Mar 03, 2017 at 01:23 AM


avatar image
Former Member


I'm trying to fill tree table with oData Service. But it is displaying as normal table not as tree table.

Please Help.

Below is .js code for setting up tree table rows

	var tableCarrier = this.getView().byId("treeTable");
			path: "/results",
		parameters: {
			countMode: "Inline",
		treeAnnotationProperties: {					hierarchyLevelFor: "Hierarchylevel",
	hierarchyNodeFor: "Nodeid",
	hierarchyParentNodeFor: "Parentnodeid",
	hierarchyDrillStateFor: "Drillstate"

Below is XML code of view

<table:TreeTable id="treeTable" selectionMode="None" enableColumnReordering="false" expandFirstLevel="false">
	<table:Column label="Description">
	<Text text="{Nodedesc}"/>
	<table:Column label="HierarchyLevel">
	<Text text="{Hierarchylevel}"/>
	<table:Column label="NodeID">
	<Text text="{Nodeid}"/>
	<table:Column label="ParentNodeID">
		<Text text="{Parentnodeid}"/>

below is oData Response

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers